What Andrew Madsen said. If you want to use NSCoding, you will have to encode your object to an NSData object using NSKeyedArchiver and put the NSData in your dictionary. At least it would be impossible for a person if it causes concern. Greetings
Edit: re-read your question, this is really what Andrey said, because you want a 1: 1 key representation: values in a dictionary - the NSCoding approach will provide you with the whole object as a value for your dictionary key. So, +1 to Andrew.
Mario source
share