• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: binding to static text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >binding to static text (From: James Walker <email@hidden>)

  • Prev by Date: Re: EPS
  • Next by Date: Re: EPS
  • Previous by thread: binding to static text
  • Next by thread: Re: binding to static text
  • Index(es):
    • Date
    • Thread