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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to