Application never becomes frontmost. How?
Application never becomes frontmost. How?
- Subject: Application never becomes frontmost. How?
- From: email@hidden
- Date: Tue, 17 May 2011 12:15:08 -0400 (EDT)
So I'm trying to develop an app that runs as an NSStatusItem, but it keeps
bringing itself to the foreground whenever a window belonging to it is
left-clicked on. And that's no good. I want it to stay in the background
at all times -no matter what-(which has to be possible because
Accessibility Inspector and Classic Menu both do it), or failing that, at
least relinquish control back to the previous foreground app after its
window has been closed.
I've got no idea how to accomplish either of those things. My app is
already an LSUIElement, so that doesn't do the trick. LSBackgroundOnly
makes its windows un-focusable, which sucks even harder. There's probably
a simple solution to all of this. But I can't find it. Help?
_______________________________________________
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