• 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: NSSearchField - detect loss of focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSearchField - detect loss of focus


  • Subject: Re: NSSearchField - detect loss of focus
  • From: Jim Correia <email@hidden>
  • Date: Sat, 29 Jul 2006 11:51:45 -0400

To revive an old thread:

http://www.cocoabuilder.com/archive/message/cocoa/2006/1/6/153953

Corbin wrote:

Take a look at resignFirstResponder. You'll have to subclass
NSSearchField, and you can send your delegate a message in this method.

I'm running into a similar need here - I have an NSTextField subclass that wants to know when it is no longer "firstResponder".


I put firstResponder in quotes because NSTextField is never firstResponder for long. In -becomeFirstResponder it sets up the field editor and makes it the firstResponder. (Thus overriding - resignFirstResponder doesn't help, since that happens right away.)

Have I missed something obvious, or is this simply incorrect advice?


Thanks, Jim _______________________________________________ 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
  • Prev by Date: Re: NSTabViewItem objects not responding appropriately to mouse clicks in custom NSTabView
  • Next by Date: Co-ordinate systems
  • Previous by thread: Re: NSTextField subclass - not using NSTextFieldCell subclass when unarchived from nib?
  • Next by thread: Re: NSSearchField - detect loss of focus
  • Index(es):
    • Date
    • Thread