Reason for menuNeedsUpdate notification?
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