• 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: NSTextfield value doesn't update binding when set programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextfield value doesn't update binding when set programmatically


  • Subject: Re: NSTextfield value doesn't update binding when set programmatically
  • From: Damian Terentiev <email@hidden>
  • Date: Sat, 12 Jan 2008 00:27:19 +0300

The @"value" is the binding name, not the key. The key is the name of your instance variable you've bound to the NSTextField


NSString * newString // assume this exists [aTextField setValue:newString forKey:@"personName"];

where personName is your ivar.

Thank you so much! Binding to the corresponding NSArrayController's keypath worked great! _______________________________________________

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


  • Follow-Ups:
    • Re: NSTextfield value doesn't update binding when set programmatically
      • From: mmalc crawford <email@hidden>
References: 
 >Re: NSTextfield value doesn't update binding when set programmatically (From: Jonathan Dann <email@hidden>)

  • Prev by Date: Re: +{NSImage imageNamed:fromBundle:]?
  • Next by Date: Re: +{NSImage imageNamed:fromBundle:]?
  • Previous by thread: Re: NSTextfield value doesn't update binding when set programmatically
  • Next by thread: Re: NSTextfield value doesn't update binding when set programmatically
  • Index(es):
    • Date
    • Thread