• 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: detect "left mouse button clicked in menu bar"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >detect "left mouse button clicked in menu bar" (From: "David M. Cotter" <email@hidden>)
 >Re: detect "left mouse button clicked in menu bar" (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: Document file read, but -readFromData:(etc) has error.
  • Next by Date: Re: File's owner, outlets and methods
  • Previous by thread: Re: detect "left mouse button clicked in menu bar"
  • Next by thread: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?
  • Index(es):
    • Date
    • Thread