Re: Way to determine size of a menu?
Re: Way to determine size of a menu?
- Subject: Re: Way to determine size of a menu?
- From: Mitchell Livingston <email@hidden>
- Date: Mon, 01 Jan 2007 17:33:29 -0800
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 (email@hidden)
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