Re: binding to static text
Re: binding to static text
- Subject: Re: binding to static text
- From: Charles Steinman <email@hidden>
- Date: Wed, 10 Sep 2008 19:45:48 -0700 (PDT)
--- On Wed, 9/10/08, James Walker <email@hidden> wrote:
> I have a static text item whose value is bound to an
> NSUserDefaultsController. It correctly shows the value
> stored as a
> default. However, if I programmatically change the text
> (with
> -[NSControl setStringValue:]), the new value does not get
> saved. What
> am I missing?
Bindings don't work that way. You're supposed to change the model programmatically -- the text field is for the user to enter text.
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/TP40002148-182467
Cheers,
Chuck
_______________________________________________
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