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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden