> On Oct 20, 2013, at 12:37 PM, Ken Thomases <k...@codeweavers.com> wrote:
> >> On Oct 20, 2013, at 2:29 PM, Charles Srstka wrote: >> >> -menuNeedsUpdate: has the same problem that -validateMenuItem: has. It >> doesn't get called until the menu is about to be actually drawn, which >> doesn't happen until the user clicks on your menu. > > This isn't correct. Menus are updated/validated when resolving keyboard > shortcuts. What makes you think otherwise? Lots of things wouldn't work if > that weren't so. Well, the docs are surprisingly quite explicit: “Invoked when a menu is about to be displayed at the start of a tracking session so the delegate can modify the menu.” But, as you state, I know that menus update themselves for key equivalent processing. I’m not near my Mac, so I can’t verify that -menuNeedsUpdate: is called in that scenario, or only the lazy-population methods. --Kyle Sluder _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com