Re: NSSearchField - detect loss of focus
Re: NSSearchField - detect loss of focus
- Subject: Re: NSSearchField - detect loss of focus
- From: Jim Correia <email@hidden>
- Date: Sat, 29 Jul 2006 18:15:26 -0400
On Jul 29, 2006, at 5:42 PM, Matt Neuburg wrote:
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?
The problem is that I don't know what know that editing is over, I
really want to know when the text field is no longer being edited via
the field editor. (The text field subclass wants to draw extra
adornment in this case.)
-textDidEndEditing: is sent when the user presses Enter, and the
field editor is still first responder.
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