Re: NSView directly drawn on screen?
Re: NSView directly drawn on screen?
- Subject: Re: NSView directly drawn on screen?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 13 Jun 2009 15:29:58 -0700
Am 13.06.2009 um 02:01 schrieb Chunk 1978:
there should be a way, no? i mean, even built-in spotlight accepts
keyboard events without the front app loosing focus.
Not true. Spotlight removes keyboard focus from the front app. Try
it in Mail: Put the cursor in the "Subject" text field so it gets the
blue focus border. Pull down the Spotlight menu. The focus border goes
away and Spotlight's search field gets the insertion mark.
I think what you really want to do is deactivate your app once your
window has closed and you're ready to give up keyboard focus. Then
focus should revert to whatever window previously had it. If you're an
app with the NSUIElement or NSBGOnly key set in your bundle, that
*might* happen automagically when your window closes. If it doesn't
you might have to do something explicitly, like remembering the
previous front process, and activating it again after you've closed.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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