Re: Programmatically setting the value of a bound TextField
Re: Programmatically setting the value of a bound TextField
- Subject: Re: Programmatically setting the value of a bound TextField
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 1 Mar 2006 11:54:29 -0800
On Mar 1, 2006, at 6:29 AM, Felix Franz wrote:
[textField bind: @"value"
toObject: controller
withKeyPath: @"selection.name"
options: nil]
// try it out:
NSString* newName = @"bar";
[textField setStringValue: newName];
STAssertEqualObjects( [person valueForKey:@"name"], newName, nil);
// this fails
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/
TP40002148-182467>
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden