• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pop-up NSMenu without NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pop-up NSMenu without NSPopUpButton


  • Subject: Pop-up NSMenu without NSPopUpButton
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 11 Feb 2008 15:35:00 -0700

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/>

_______________________________________________

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


  • Follow-Ups:
    • Re: Pop-up NSMenu without NSPopUpButton
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: @property problem
  • Next by Date: Re: Pop-up NSMenu without NSPopUpButton
  • Previous by thread: Challenging text editing field problem
  • Next by thread: Re: Pop-up NSMenu without NSPopUpButton
  • Index(es):
    • Date
    • Thread