FROM : Martin Wierschin
DATE : Tue Nov 06 03:36:38 2007
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
DATE : Tue Nov 06 03:36:38 2007
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
| Related mails | Author | Date |
|---|---|---|
| Martin Wierschin | Nov 2, 05:40 | |
| Martin Wierschin | Nov 6, 03:36 |






Cocoa mail archive

