Why did I get sent becomeFirstResponder?
David Dunham
dunham at mac.com
Mon May 28 10:27:54 PDT 2007
On 27 May 2007, at 21:56, Scott Stevenson wrote:
>> Is there a way to know why my NSView is getting sent
>> becomeFirstResponder?
>
> [[NSApp currentEvent] type] might do something for you, but I
> haven't tried it myself.
Thanks, that seems to allow my kludge to work. (I should have thought
of it, as I've used it elsewhere to see if a modifer key is down in
places like textView:doubleClickedOnCell:inRect:atIndex: where you
don't get the event.)
David Dunham A Sharp, LLC
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus
Wirth
More information about the MacOSX-dev
mailing list