• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Forcing menu update in 10.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Forcing menu update in 10.4?
      • From: Michael Domino <email@hidden>
References: 
 >Forcing menu update in 10.4? (From: Michael Domino <email@hidden>)

  • Prev by Date: Re: Hot to define a connection from source code?
  • Next by Date: Re: NSKeyValueBindingCreation Leak
  • Previous by thread: Forcing menu update in 10.4?
  • Next by thread: Re: Forcing menu update in 10.4?
  • Index(es):
    • Date
    • Thread