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?
That’s safe enough. But did you know that you can write plists by simply doing:
As long as you only have plist compatible objects in the dictionary of course.