I'm trying to check that a value can be safely added to a plist. I've read Apple's documentation on plists.
I'm storing values in an NSMutableDictionary
and then serializing them using NSPropertyListSerialization
. If I want to check that a value added to my dictionary will be serializable, can I use [value isKindOfClass:[NSNumber class]]
or do I need to check against the core foundation types backing it?