• 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: Organising visual content of NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Organising visual content of NSPopUpButton


  • Subject: Re: Organising visual content of NSPopUpButton
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Wed, 10 Jun 2009 12:48:30 -0600

On 10 Jun 2009, at 11:27, Nick Zitzmann wrote:

On Jun 10, 2009, at 11:20 AM, Stephen Blinkhorn wrote:

I use NSPopUpButton to create menus with say 30-40 entries. I'd like to divide the top half of the menu visually from the bottom half with lines or some kind of heading. Is this possible via NSPopUpButton - I populate the menu via addItemsWithTitles:


It's possible, but not with -addItemsWithTitles:. You'll need to insert separator items, created by calling +[NSMenuItem separatorItem], into the pop-up button's menu object.

Ahh, thanks Nick.

Stephen
_______________________________________________

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


References: 
 >Organising visual content of NSPopUpButton (From: Stephen Blinkhorn <email@hidden>)
 >Re: Organising visual content of NSPopUpButton (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: MVC Theory Help
  • Next by Date: Re: self Changes on Open Panel
  • Previous by thread: Re: Organising visual content of NSPopUpButton
  • Next by thread: MVC Theory Help
  • Index(es):
    • Date
    • Thread