• 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
[SOLVED] Re: Pop-up NSMenu without NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: Pop-up NSMenu without NSPopUpButton


  • Subject: [SOLVED] Re: Pop-up NSMenu without NSPopUpButton
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 11 Feb 2008 16:03:41 -0700


On Feb 11, 2008 AD, at 3:47 PM, Peter Ammon wrote:
To show a menu as if it were a popup menu, create an NSPopUpButtonCell, call setMenu: on it, and then call [popupCell performClickWithFrame: inView:].

The NSPopUpButtonCell can be entirely transient - you can create it and destroy it in your mouseDown: method, for example.


Thanks; that resolves the problem.

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


References: 
 >Pop-up NSMenu without NSPopUpButton (From: Nick Zitzmann <email@hidden>)
 >Re: Pop-up NSMenu without NSPopUpButton (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: NSCollectionView questions
  • Next by Date: Re: NSCollectionView questions
  • Previous by thread: Re: Pop-up NSMenu without NSPopUpButton
  • Next by thread: NSTask/hdiutil
  • Index(es):
    • Date
    • Thread