Re: NSStatusItem with no menu triggers menu tracking (repost)
Re: NSStatusItem with no menu triggers menu tracking (repost)
- Subject: Re: NSStatusItem with no menu triggers menu tracking (repost)
- From: Philip George <email@hidden>
- Date: Thu, 18 Jul 2002 20:25:31 -0500
Yes, I know, but I'm not so sure it's a bug, technically, although it's
quite annoying. I am releasing this product in very short order, so I
cannot wait for Apple to release a bug fix anyway. What I need is a
workaround, so that I can deal with the problem myself, directly, and
immediately.
Can anyone think of ANY way that this could be dealt with?
To recap: Simply single-click on any blank area of your menubar. After
releasing the mouse from the click (and before clicking on anything
else), hover the pointer over the system clockits menu will pop open.
This is what happens when I click on the NSStatusItem in my app, which
does not have a menu; it's just an image that, when clicked, triggers a
handler method. If you listen to the notifications being passed around
by the system, you'll see that in effect you're activating menu tracking
(when you didn't actually click a menu at all), which can only be
DE-activated by clicking something (anything).
How can I combat this behavior now, without having to wait on Apple to
fix a bug, which they may not even consider to be a bug?
The bottom line (rephrased for clarity): I do not want menu tracking
enabled (or at least I want it immediately disabled again) when users
click on my statusitem.
What are some possible solutions/workarounds?
- Philip
On Thursday, July 18, 2002, at 11:59 AM, Carlos A. Weber wrote:
>
*This message was transferred with a trial version of CommuniGate(tm)
>
Pro*
>
On Thursday, Jul 18, 2002, at 02:55 Pacific/Honolulu, Philip George
>
wrote:
>
>
> I have an NSStatus item which does not have a menu assigned to it. In
>
> it is a graphic. When the user clicks the graphic, it is setup to
>
> process mouse events, which all works great...
>
>
>
> The problem is that clicking on that NSStatusItem results in menu
>
> tracking being enabled, so if the user moves their mouse over to the
>
> system clock, its (the clock's) menu will pop open. The user has to
>
> actually click something (anything) a second time for menu tracking to
>
> be disabled again.
>
>
>
> How can I prevent this behavior?
>
>
(I think someone else mentioned this behavior here a few days ago...)
>
This is a more general bug which has nothing to do with your
>
NSStatusItem. Try clicking in an empty area of the menu bar, then mouse
>
over to the system clock; the same thing happens!
>
>
File a bug report?
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.