• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Application never becomes frontmost. How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Application never becomes frontmost. How?
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Temporarily enabling layer backing for NSView
  • Next by Date: Reducing AVCaptureVideoDataOutput framerate
  • Previous by thread: Re: Temporarily enabling layer backing for NSView
  • Next by thread: Re: Application never becomes frontmost. How?
  • Index(es):
    • Date
    • Thread