• 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
Re: Option-click on my app hides the other app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Option-click on my app hides the other app


  • Subject: Re: Option-click on my app hides the other app
  • From: Ben Haller <email@hidden>
  • Date: Thu, 11 Aug 2005 09:22:55 -0700

On Aug 11, 2005, at 7:03 AM, Jim Correia wrote:

Making the window a panel with NSNonactivatingPanelMask seems to not cause option click to hide the current application (with the side effect that your application doesn't become the active one.)

Jim gets the prize, folks. I made my window a panel (and apart from having to add a setHidesOnDeactivate:NO call, I am not aware of any significant side effects to that change; anything I'm missing?), added NSNonactivatingPanelMask, and presto, option-click behaves as desired.
Interestingly, the side effect Jim mentions, that my app will not become the active one in response to clicks any more, is not biting me. Clicks bring my app active exactly as desired. This may be because my window (excuse me, panel) is borderless, or it may be because of a rather unconventional override of sendEvent: that I have in my panel subclass for tangentially related reasons, or perhaps it is something else again. In any case, it works perfectly now.
Thanks, Jim!


Ben Haller
Stick Software

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Option-click on my app hides the other app (From: Ben Haller <email@hidden>)
 >Re: Option-click on my app hides the other app (From: Eric Schlegel <email@hidden>)
 >Re: Option-click on my app hides the other app (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Option-click on my app hides the other app
  • Next by Date: Re: Distributed Objects between cats
  • Previous by thread: Re: Option-click on my app hides the other app
  • Next by thread: NSUserDefaults and thread safety
  • Index(es):
    • Date
    • Thread