Skip navigation.
 
mlRe: NSTextfield value doesn't update binding when set programmatically
FROM : Damian Terentiev
DATE : Fri Jan 11 22:27:19 2008

> 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!

Related mailsAuthorDate
mlRe: NSTextfield value doesn't update binding when set programmatically Jonathan Dann Jan 11, 20:38
mlRe: NSTextfield value doesn't update binding when set programmatically mmalc crawford Jan 11, 20:46
mlRe: NSTextfield value doesn't update binding when set programmatically Jonathan Dann Jan 11, 20:51
mlRe: NSTextfield value doesn't update binding when set programmatically Damian Terentiev Jan 11, 22:27
mlRe: NSTextfield value doesn't update binding when set programmatically mmalc crawford Jan 11, 22:43