Re: TextField textdidchange
Re: TextField textdidchange
- Subject: Re: TextField textdidchange
- From: David Dauer <email@hidden>
- Date: Sat, 25 Oct 2003 19:39:04 +0200
"Alastair J.Houghton" <email@hidden> schrieb am 25.10.2003 19:27
Uhr :
>
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.
>
Hm.. And how can i get notifyed when the value in the textfield gets changed
from any function?
David
_______________________________________________
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.