-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector

Quick Post:

If you are facing the following error:

-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector

Basically this means that you wrote the code in IOS 6 SDK and tried to run on IOS 5.1 or earlier SDK.

In IOS 5.1 or earlier, its the following statement instead of the one above.

-[UITableView dequeueReusableCellWithIdentifier:]

To resolve the above, add a check to see what IOS version the device is and use the respective section of codes.


JSONLint, One tool at a time.

Over the holiday season, I decided to explore the JSON component on IOS Objective C.

But before blogging on that, I like to introduce the following tool.
To test if a particular JSON URL is correct, I recommend the following site.


JSONLint, allow you to quickly test and return result from the JSON URL, therefore you dont have to write a set of sampler codes to test if the JSON URL is working or not.

Cut down on the development time for sure.


Happy Holidays!

‘NSInvalidArgumentException’, reason: ‘-[__NSCFNumber isEqualToString:]: unrecognized selector

In my code segment, I have the following:

NSString *string_temp = [[json objectAtIndex:counter] valueForKey:@”id”];
//this return a ID from a json data stream.

if (![string_temp isEqualToString:@”(null)”]){ //<–This line is the throwing the exception.
//do something here

Solution for this:

When passing the value to the string_temp variable, you need to add a stringValue to it.

NSString *string_temp=[[[json objectAtIndex:counter] valueForKey:@”id”] stringValue];


K2 Blackpearl : AD SmartObject querying Multiple Domain

K2’s Blackpearl introduce this concept of a smartobject, which really is a Data Access Layer (DAL) in a n-tier architecture without all the CRUDstatements. With smartobject it comes with some really neat Service Object (this is the what define the smartobject). Active Directory smartobject that allow you to query your AD and returns result. Continue reading “K2 Blackpearl : AD SmartObject querying Multiple Domain”

Infopath Editor Security notice suppressed

Microsoft Office has identified a potential security concern.

Warning: This file has been signed by a publisher that cannot be verified.

The template is requesting full trust permission and is signed by:

If you see the above message when opening up any Infopath Form, this means that the certification used are self-signed.

Therefore should you need to suppressed this message, you will need to get the cert from the person who deploy the form and install it on your machine.

K2 Blackpearl: Infopath integration

The InfoPath form template already has rules to switch views when the form is opened. For the process to integrate with the InfoPath form, specific view-switching rules are added by this wizard to the form template. Remove the existing view-switching rules and rerun the wizard.

The above is the error when you try to integrate the K2 Blackpearl Process with Infopath if you have view switching rules in your form load event.

This error will occur even if the rules in your form load event are disabled. Therefore make sure you check the above if you are facing this issue.

K2 Blackpearl SmartObject populate Infopath Dropdownlist


Populate Infopath Drop down list with Value from K2 SmartObject

1. Create the K2 Smartobject, in my case this is a SQL Service Smartobject.


Figure1. SQL Server Table with data.

Figure2. SmartObject: K2CompanyDetails Created

2.  Create a new Infopath form, save the form and exit infopath.

3. Right-Click on the form and select Integrate with SmartObject, select the K2CompanyDetails – Get List method.

4.Open up the form (Right-click -> Design), add a dropdownlist control to the page and right-click to get the properties.

Figure 3. Accessing the Properties of the Dropdownlist

5. Set the DataSource as K2CompanyDetails, and Set the Value to ID and Display Value to CompanyName.

Figure 4. Setting the DataSource to K2CompanyDetails.

6. Set the FormLoad Rules, to Query data on load.

Figure 5. Accessing the Form Load Rules

Figure 6. Query for Data

Figure 7. Rule Window.

7. Now save and preview this form.