Re: Forcing menu update in 10.4?
Re: Forcing menu update in 10.4?
- Subject: Re: Forcing menu update in 10.4?
- From: Michael Domino <email@hidden>
- Date: Thu, 28 Jan 2010 12:50:05 -0500
- Thread-topic: Forcing menu update in 10.4?
Thanks for replying!
No, what happens is:
1. the user selects a sub-menu item, and item is checked or unchecked.
2. The menu closes.
3. The user selects the menu again, and keeps the mouse on the main menu
title. The top-level item is not updated to its true state (either checked
or unchecked) which had been set in the previous menu selection, until the
mouse rolls down over the menu items.
The state has been changed in the previous menu selection, the menu has
closed, and then when it's reopened the state has not been updated.
Is that clearer?
On 1/28/10 11:37 AM, "Jens Alfke" <email@hidden> wrote:
>
> 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
>
--
Michael Domino
email@hidden
Phone: 617-816-5851
Identity Finder, LLC
250 West 57th St; Suite 1400
New York, NY 10107
http://www.identityfinder.com
_______________________________________________
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