• 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: highlighting menus in the menu bar on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlighting menus in the menu bar on Leopard


  • Subject: Re: highlighting menus in the menu bar on Leopard
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 5 Nov 2007 18:36:38 -0800

Replying to myself for the sake of the list archives...

Does anyone know any other way to accomplish this highlighting?

The undocumented Objective-C methods on NSMenu and NSMenuItem were a dead end, but these undocumented functions ended up doing the trick:


	_NSHighlightCarbonMenu( NSMenu* menu );
	_NSUnhighlightCarbonMenu( NSMenu* menu );

Although perhaps the best would be to set a unique temporary menu equivalent for the item you want to activate and use NSMenu's "performKeyEquivalent:", which should do the highlighting for you.

~Martin

_______________________________________________

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


References: 
 >highlighting menus in the menu bar on Leopard (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: Learning a word with the spell checker
  • Next by Date: Re: Converting *u unicode hex sequences
  • Previous by thread: highlighting menus in the menu bar on Leopard
  • Next by thread: Core Data app saving zero length files
  • Index(es):
    • Date
    • Thread