Re: TextField textdidchange
Re: TextField textdidchange
- Subject: Re: TextField textdidchange
- From: "Alastair J.Houghton" <email@hidden>
- Date: Sat, 25 Oct 2003 18:27:50 +0100
On Saturday, October 25, 2003, at 05:35 pm, David Dauer wrote:
I have an NSTextField which takes its value from an NSStepper.
(takeStringValueFrom:)
Now i want to get notified when this happens.
Setting a delegate and using this:
- (void)controlTextDidChange:(NSNotification *)aNotification
{
if ([aNotification object] == myField)
{
NSLog(@"%@",[myField stringValue]);
}
}
Will only work when I type in the field manually.
Any suggestions?
Change the target and action to point at a new method on the object
that needs notifying, then make that method send the original
-takeStringValueFrom: message.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.