Re: NSUserDefaultsController problems
Re: NSUserDefaultsController problems
- Subject: Re: NSUserDefaultsController problems
- From: Brian Stern <email@hidden>
- Date: Fri, 21 Apr 2006 18:36:59 -0400
>In the case that's not working I'm storing an array containing dictionaries
>containing simple values. I think that is somehow part of the problem.
OK, mmalc pointed me to an explanation of this.
Turns out I only have to turn on the "Handles Content as compound value"
and "Validates immediately" options for the NSArrayControllers that are
bound to the shared user defaults controller. The first option is required
for array controllers that manage arrays in user defaults or that manage
arrays containing dictionaries in user defaults (on Tiger). If a popup is
bound to the array controller and validates immediately isn't turned on
notifications of the changed value are sent, in response to changing the
selected item in the UI, but the value hasn't actually changed in the user
defaults controller.
Thanks,
--
Brian Stern
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden