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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to