Skip navigation.
 
mlPop-up NSMenu without NSPopUpButton
FROM : Nick Zitzmann
DATE : Mon Feb 11 23:35:00 2008

How do I make an NSMenu act as a pop-up menu without the use of 
NSPopUpButton? I see there are class methods to make it pop up as a 
contextual menu, but I need it to pop up as a pop-up menu like 
NSPopUpButton magically does, so that one item in the menu can be pre-
selected.

I've searched the archives, and have already tried calling 
_NSGetCarbonMenu() for use with PopUpMenuSelect(), but the function is 
always returning NULL, and even if this did work and didn't use 
undocumented methods, it still won't work in 64-bit.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlPop-up NSMenu without NSPopUpButton Nick Zitzmann Feb 11, 23:35
mlRe: Pop-up NSMenu without NSPopUpButton Peter Ammon Feb 11, 23:47
ml[SOLVED] Re: Pop-up NSMenu without NSPopUpButton Nick Zitzmann Feb 12, 00:03