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: Hiding an NSMenu, or making keyboard shortcuts not tied to a menu item?



On Thursday, July 17, 2003, at 09:54 AM, Eric Schlegel wrote:

It's possible to do this with Carbon APIs, in 10.2 and later. Basically you just create an insert a menu into the menubar as usual, but you also set the Hidden attribute on the menu, so the menu doesn't show up in the menubar. (There's a bug in 10.2 that allows the menu to be displayed if you're keyboard-navigating the menubar; that's fixed in Panther).

I don't believe NSMenu currently exports the Hidden menu attribute via a method, so you probably can't do this entirely in Cocoa.

For the curious, I filed bug report #3333365 (what a number) asking for hidden NSMenus...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"You can't modify a constant, float upstream, win an argument with the IRS, or satisfy this compiler" - actual MPW 68K compiler error message
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Hiding an NSMenu, or making keyboard shortcuts not tied to a menu item? (From: Eric Schlegel <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.