Re: highlighting menus in the menu bar on Leopard
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