• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField: textDidEndEditing delegate isn't firing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSTextField: textDidEndEditing delegate isn't firing (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: [OT] A bit confused on pointers...
  • Next by Date: Re: estimatedProgress: not updating
  • Previous by thread: NSTextField: textDidEndEditing delegate isn't firing
  • Next by thread: [OT] A bit confused on pointers...
  • Index(es):
    • Date
    • Thread