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: "David M. Cotter" <email@hidden>
- Date: Thu, 13 Aug 2009 20:36:23 -0700
sorry, bad choice of words on my part. i meant i want to call a
function.
anyway i learned about "NSMenuDidBeginTrackingNotification" which does
exactly the trick i was looking for
On Aug 13, 2009, at 8:09 PM, Michael Watson wrote:
On Aug 13, 2009, at 16:56, "David M. Cotter" <email@hidden>
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
Launching a process is by no means a "quick" operation. It is
imperative that menus appear instantly when requested and not cause
a great deal system overhead in the process, since users tend to be
trigger-happy with menus.
What is your actual goal? It seems silly that you'd need to execute
a process every time someone clicks on a menu in the menu bar.
--
mikey
_______________________________________________
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