Re: Making menu bar application's window key
Re: Making menu bar application's window key
- Subject: Re: Making menu bar application's window key
- From: Justin Williams <email@hidden>
- Date: Sat, 5 Nov 2005 10:02:56 -0500
On Nov 5, 2005, at 1:42 AM, Daniel Jalkut wrote:
What I do is very carefully acquire frontmost status and then give
it back when I'm done. Since for your app it seems like you need it
every time the user invokes the "menu" item, it shouldn't be too
complicated. In FastScripts since I only steal frontmost status
when a dialog needs to be displayed, I have a set of convenience
methods I use:
<SNIP>
If you called "activateGracefully" just before displaying your
window, and "deactivateGracefully" just after, you might see a very
satisfactory behavior. (You'll need to define the instance
variables _activeApp and _interruptedOtherApp).
That works just as advertised. Thanks, Daniel.
On a related note - I downloaded your beta and noticed that your
menu bar icon only responds to clicks inside the actual checkmark
graphic. I recommend changing this so that it responds to clicks
anywhere within its designated rectangle. It can be hard to click
it as it is ...
It's a bug in the beta. I'm working on getting some new icons. :-)
Thanks again.
__________________________________________________
Justin Williams email@hidden
work: www.maczealots.com play: www.carpeaqua.com
_______________________________________________
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