Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.