Re: NSPanel: resigning key focus?
Re: NSPanel: resigning key focus?
- Subject: Re: NSPanel: resigning key focus?
- From: Graham Cox <email@hidden>
- Date: Thu, 4 Sep 2008 20:38:18 +1000
On 4 Sep 2008, at 8:26 pm, Vijay Malhan wrote:
How do I make NSPanel(activating utility window) to resign key focus
on an
event (escape key down). I have tried:
- resignFirstResponder
- resignKeyWindow
etc.
None works.
I have sub-classed NSPanel to get keydown events.
This won't work because it doesn't know who should become the
responder when it resigns. Instead, if you make some other object
(window) key, this one should lose that status. (i.e. it can only jump
if it has somewhere *to* jump).
hth, Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden