• 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 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

  • Follow-Ups:
    • Re: Way to determine size of a menu?
      • From: Dave Batton <email@hidden>
    • 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>)

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