Re: Reason for menuNeedsUpdate notification?
Re: Reason for menuNeedsUpdate notification?
- Subject: Re: Reason for menuNeedsUpdate notification?
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 23 Apr 2010 16:47:55 +0100
NSMenuDidBeginTrackingNotification might do what you want. Note that, despite what the docs say, this is not sent on Tiger.
Paul Sanders
----- Original Message -----
From: "David Reitter" <email@hidden>
To: <email@hidden>
Sent: Friday, April 23, 2010 4:31 PM
Subject: Reason for menuNeedsUpdate notification?
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