[SOLVED] Re: Pop-up NSMenu without NSPopUpButton
[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