• 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
Re: Way to determine size of a menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Way to determine size of a menu?
      • From: PGM <email@hidden>
References: 
 >Way to determine size of a menu? (From: Mitchell Livingston <email@hidden>)
 >Re: Way to determine size of a menu? (From: Mitchell Livingston <email@hidden>)
 >Re: Way to determine size of a menu? (From: PGM <email@hidden>)

  • Prev by Date: Re: Way to determine size of a menu?
  • Next by Date: Re: Way to determine size of a menu?
  • Previous by thread: Re: Way to determine size of a menu?
  • Next by thread: Re: Way to determine size of a menu?
  • Index(es):
    • Date
    • Thread