• 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: Negm-Awad Amin <email@hidden>
  • Date: Wed, 24 Sep 2008 18:13:29 +0200


Am Do,11.09.2008 um 02:38 schrieb James Walker:

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?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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


The bound property (stringValue) of the bound object (instance of NSControl) is set automatically, when the observed property (dont' know) of the observed object (instance of NSUserDefaultsController) changes.

Nothing is done in the opposite direction (changing the bound property programmatically)

cheers,

Amin Negm-Awad
email@hidden




_______________________________________________

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: Controlling rootElement Display in outline view
  • Next by Date: Re: NSOperation NSOperationQueue
  • Previous by thread: Re: binding to static text
  • Next by thread: Calculate minutes and seconds
  • Index(es):
    • Date
    • Thread