I'm retrieving a key from an object that looks like this:
po obj
{
TypeID = 3;
TypeName = Asset;
}
The key value is being retrieved like this:
NSString *typeId = (NSString*)[obj objectForKey:@"TypeID"];
Rather than typeId being an NSString, it is an NSDecimalNumber. Why is that?
How do I convert it to an NSString?
NSString
to anNSDecimalNumber
, they are different type's and you'll crash if you try to useNSDecimalNumber
methods on that pointer. – Jegger