• 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: Matt Neuburg <email@hidden>
  • Date: Sat, 29 Jul 2006 14:42:28 -0700
  • Thread-topic: NSSearchField - detect loss of focus

On Sat, 29 Jul 2006 11:51:45 -0400, Jim Correia <email@hidden>
said:
>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?

I'm not understanding why controlTextDidEndEditing: doesn't do it for you.
It corresponds exactly to everything I think of intuitively as "loss of
focus". Have you some counter-example? m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
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

  • Follow-Ups:
    • Re: NSSearchField - detect loss of focus
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Get Machine Type string
  • Next by Date: Re: malloc/free problems within a thread
  • Previous by thread: Re: NSSearchField - detect loss of focus
  • Next by thread: Re: NSSearchField - detect loss of focus
  • Index(es):
    • Date
    • Thread