• 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
[Q] NSPopupButton: always show entire menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] NSPopupButton: always show entire menu


  • Subject: [Q] NSPopupButton: always show entire menu
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 15 Jun 2009 23:58:17 -0400

I have a popup button on a NSPanel with several items in it.

When the NSPanel is close enough to the bottom of the screen, the menu pops up above the control and all of the menu items appear. If the NSPanel is far enough away from the bottom of the screen, the menu pops up below the control and all of the menu items appear.

So far, so good.

However, if the NSPanel is just close enough to the bottom of the screen, the menu pops up below the control and you get the scroll arrow telling you there are more items available. Now, if the menu has popped up above the control, all of the menu items could have appeared.

Is there a way to tell a NSPopupButton to display all of the menus items if they will fit on the screen?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Prev by Date: Re: Adding actions to undo manager
  • Next by Date: Re: Serial port access from C / Objective C
  • Previous by thread: sdp header generation fails for microsoft word 2008
  • Next by thread: Re: Serial port access from C / Objective C
  • Index(es):
    • Date
    • Thread