Re: Option-click on my app hides the other app
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