NSUserDefaults and valueForKeyPath ?
NSUserDefaults and valueForKeyPath ?
- Subject: NSUserDefaults and valueForKeyPath ?
- From: "Arthur C." <email@hidden>
- Date: Tue, 9 Dec 2008 23:38:41 +0100 (CET)
I've been busy adding some structure to the NSUserDefaults in my app. So I
would have a dictionary like 'generalPrefs' with some key/value pairs,
separate from 'otherPrefs' etc.
Now I wonder why the following doesn't work:
[[NSUserDefaultsController sharedUserDefaultsController] valueForKeyPath:
@"values.generalPrefs.numberOfPoints"]
while this does work:
[[NSUserDefaultsController sharedUserDefaultsController] valueForKeyPath:
@"values.generalPrefs"],
after which generalPrefs can be referenced.
Am I missing some elementary KVC or is there something special about the
user defaults?
Thanks for your time,
Arthur
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden