• 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: Making menu bar application's window key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Making menu bar application's window key (From: Justin Williams <email@hidden>)
 >Re: Making menu bar application's window key (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: Tracking rects
  • Next by Date: Re: NSPropertyDescription userInfo
  • Previous by thread: Re: Making menu bar application's window key
  • Next by thread: Re: Making menu bar application's window key
  • Index(es):
    • Date
    • Thread