Re: detect "left mouse button clicked in menu bar"
Re: detect "left mouse button clicked in menu bar"
- Subject: Re: detect "left mouse button clicked in menu bar"
- From: Peter Ammon <email@hidden>
- Date: Thu, 13 Aug 2009 16:06:42 -0700
On Aug 13, 2009, at 2:56 PM, David M. Cotter wrote:
i know i can detect when a particular menu is about to be shown, but
what I want is to run a quick process before any menus from the menu
bar are shown, and not run it again all the while the user is
browsing the menus in the menu bar
how do i do this? apparently there is no "mouseDown" event sent
when it's in the menu bar. currently i have this very ugly code:
The NSMenuDidBeginTrackingNotification is posted at the point menu
tracking begins, before any menu is shown. That sounds like what you
want.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden