• 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
Reason for menuNeedsUpdate notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reason for menuNeedsUpdate notification?


  • Subject: Reason for menuNeedsUpdate notification?
  • From: David Reitter <email@hidden>
  • Date: Fri, 23 Apr 2010 11:31:00 -0400

How would I go about determining the reason for a menuNeedsUpdate notification?

My app gets these both for key presses and clicks on the menu.  I would like to only update it for clicks, because updating the menu is slow (and will be even slower when done separately for each menu item, via numberOfItemsInMenu: and menu:updateItem:atIndex:shouldCancel).

Looking at the event type is not reliable.  While clicks are normally SysDefined events, they become AppDefined as soon as VNC/ARD or even mouse enhancement utilities such as BetterTouchTool are used.


_______________________________________________

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

  • Follow-Ups:
    • Re: Reason for menuNeedsUpdate notification?
      • From: Eric Schlegel <email@hidden>
    • Re: Reason for menuNeedsUpdate notification?
      • From: "Paul Sanders" <email@hidden>
  • Prev by Date: Re: NSApplicationMain question
  • Next by Date: Re: Reason for menuNeedsUpdate notification?
  • Previous by thread: Accessibility for NSTableView
  • Next by thread: Re: Reason for menuNeedsUpdate notification?
  • Index(es):
    • Date
    • Thread