I created a singleton class that loads plist. I keep getting this error when I try to set the value:
[<MyPlist 0x1917bc0> setValue:forUndefinedKey:]:this class is not the key for coding for a key test. ''
I have one key in the plist file. The key is called "test" and has no meaning associated with it. I set the value as follows:
[[PlistManager sharedManager].plist setValue:@"the title value" forKey:@"test"];
I look at the plist installation dictionary and see this from inside the PlistManager:
po self.plistDictionary
{
test = "";
}
I get the error the same way that I leave PlistManager in the debugger. PlistManager is of type NSObject. So there are no xibs. Any ideas on what I need to do?
source
share