Re: Binding userdefaults update
Re: Binding userdefaults update
- Subject: Re: Binding userdefaults update
- From: Scott Anguish <email@hidden>
- Date: Thu, 10 Feb 2005 02:47:33 -0500
On Feb 9, 2005, at 8:53 AM, email@hidden wrote:
hi!
i am using an NSArrayController to store the content for
a NSPopupButton. the content of the controller is itself bound
to the shared user defaults.
furthermore the "selectedIndex" property of the popup button is also
bound to the shared user defaults.
everything works fine if i change the selection of the popupbutton
using the user interface.
but when i add another item for my NSPopupButton to the controller
and then
set the selectedItem of the NSPopupButton programatically, this
change is not stored in
the userdefaults.
The data returned by NSUserDefaults is immutable. You can't edit it.
_______________________________________________
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