Re: Delegate's methods of NSTextFields aren't called
Re: Delegate's methods of NSTextFields aren't called
- Subject: Re: Delegate's methods of NSTextFields aren't called
- From: Justin Lundy <email@hidden>
- Date: Sat, 29 Mar 2003 07:50:58 -0800
Actually, you have to use NSControl's delegate methods
- (void) controlTextDidEndEditing: (NSNotification *) aNotification
- (BOOL) control: (NSControl *) control textShouldBeginEditing: (NSText
*) fieldEditor
in your delegate. If you re-read NSTextField's documentation:
This posting causes the receiver's delegate to receive a
controlTextDidEndEditing: message.
- Justin
On Saturday, March 29, 2003, at 06:23 AM, Giovanni Donelli wrote:
>
Hello Gurus,
>
I have two NSTextFields on a NSDrawer and I would like to make some
>
operation after the field was edited...
>
so I made my controller object to be a delegate for NSTextFields but
>
these methods aren't called:
>
>
- (void)textDidChange:(NSNotification *)aNotification
>
- (void)textDidEndEditing:(NSNotification *)aNotification
>
>
is there anyone who had the same problem and know how to make it works?
>
>
thanks!
>
>
Giovanni
>
_______________________________________________
>
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.
_______________________________________________
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.