Re: NSTextfield value doesn't update binding when set programmatically
Re: NSTextfield value doesn't update binding when set programmatically
- Subject: Re: NSTextfield value doesn't update binding when set programmatically
- From: mmalc crawford <email@hidden>
- Date: Fri, 11 Jan 2008 11:46:39 -0800
On Jan 11, 2008, at 11:38 AM, Jonathan Dann wrote:
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.
No. Don't do this. (a) It won't work. (b) This is not how bindings
is designed to work.
This is discussed in the documentation.
mmalc
_______________________________________________
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