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" <m...@davecotter.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to