Re: NSTextField: textDidEndEditing delegate isn't firing
Re: NSTextField: textDidEndEditing delegate isn't firing
- Subject: Re: NSTextField: textDidEndEditing delegate isn't firing
- From: "Timothy J. Wood" <email@hidden>
- Date: Wed, 28 Dec 2005 15:37:09 -0800
On Dec 28, 2005, at 3:12 PM, Frederick C. Lee wrote:
1) I've selected a particular NSTextField to be the 1st Responder.
2) I've connected this NSTextField with the File's Owner as the
delegate
2a) I also added the [<field link> setDelegate:self] within the
File's Owner (to be double sure).
Yet, I can't get the following to fire within the File's Owner
(NSPersistentDocument obj) when I leave the field:
- (void)textDidEndEditing:(NSNotification *)aNotification {
NSLog(@"{textDidEndEditing}");
}
What am I missing?
NSTextField isn't a NSText so it doesn't send this notification.
NSTextField is a NSControl, though, and if you look in NSControl's
header/documentation you'll find:
- (void)controlTextDidEndEditing:(NSNotification *)obj;
which the control calls when its field editor (which is an
NSTextView) ends editing.
-tim
_______________________________________________
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