I have a project file from an OS X application, which is a plist created using NSKeyedArchiver. I need to programmatically change one line.
Basically, it contains an NSDictionary object with Foundation classes. But there is one custom class (GradientColor). I defined it myself and did not try to do anything in initWithCoder: and encodeWithCoder: but the target application crashes trying to read the newly created project file. Therefore, during initialization, it cannot properly handle nil values.
Can I somehow find out which keys correspond to my class when initializing it with initWithCoder: (NSCoder *) aDecoder to encode them back unchanged?
source share