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 18:34:10 -0800
Thanks, but what I really want to do is make it look like Mail.app's action button, which requires making the button an image. I'm trying to subclass NSPopUpButton/NSPopUpButtonCell but I can't seem to get it to show a custom image.
Thanks,
Mitchell Livingston
On Monday, January 01, 2007, at 09:17PM, "PGM" <email@hidden> wrote:
>
>On 1-Jan-07, at 20:33 PM, Mitchell Livingston wrote:
>
>> 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?
>>
>
>NSPopUpButton will act as a pullDown button (so with the desired
>behaviour) when you set -setPullsDown: to YES.
>
>http://developer.apple.com/documentation/Cocoa/Conceptual/MenuList/
>Concepts/HowPullDownListsWork.html
>
>Cheers, Patrick
>
>
_______________________________________________
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