Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlighting menus in the menu bar on Leopard



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.