site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Thanks. Right now I subclass NSButton. How would I do it with NSPopUpButton. As I understand it, that class will take the first item in the menu and display that (and not show it in the list). How can I get it to show the gear icon all the time? Thanks, Mitchell Livingston
Mitchell,
The reason is that I want to duplicate the ability of Mail.app's action button when creating a context menu, where the menu will be placed either directly below or above the button depending on if there's enough room to fit the menu below the button.
If you subclass NSPopUpButton it will handle this for you. That's what I did in my project.
Here's another option:
<http://blogs.roguesheep.com/2006/10/23/for-your-ui-pleasurerscontrols/>
-- Dave Batton Mere Mortal Software http://www.Mere-Mortal-Software.com/blog/
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com