Re: Forcing menu update in 10.4?
Re: Forcing menu update in 10.4?
- Subject: Re: Forcing menu update in 10.4?
- From: Jens Alfke <email@hidden>
- Date: Thu, 28 Jan 2010 08:37:57 -0800
On Jan 28, 2010, at 5:52 AM, Michael Domino wrote:
> I have a hierarchical menu that places checkmarks next to sub-menu items
> when the user selects an item. If either of the sub-menu items are checked,
> I would like the top-level item to be checked. This works, but the top-level
> item does not update until the mouse rolls over any of the top level items
> to force an update
It sounds like you're trying to update the checked state during menu tracking. Don't do that. Instead, implement the UI validation protocol (-validateUserInterfaceItem:), and when asked to validate a particular action, set the 'selected' state of the menu item being validated.
—Jens
_______________________________________________
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