I couldn’t find it so I am about to write one, but before I reinvent the wheel… is there a category which adds this functionality?
Of course everything in the NSDictionary is expected to conform to NSCoding but that is fine.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If everything conforms to NSCoding, it sounds like a prime candidate for
NSKeyedArchiver/NSKeyedUnarchiver. If you are only supporting iOS 5+, you could also considerNSJSONSerializationif you need it to be human readable. In that case, you are limited to JSON-supported objects though (Array, dictionary, string, number, null).