• 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: Nick Zitzmann <email@hidden>
  • Date: Wed, 10 Jun 2009 11:27:34 -0600


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.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


  • Follow-Ups:
    • Re: Organising visual content of NSPopUpButton
      • From: Stephen Blinkhorn <email@hidden>
References: 
 >Organising visual content of NSPopUpButton (From: Stephen Blinkhorn <email@hidden>)

  • Prev by Date: MVC Theory Help
  • Next by Date: Re: re-making connections with a different controller
  • Previous by thread: Organising visual content of NSPopUpButton
  • Next by thread: Re: Organising visual content of NSPopUpButton
  • Index(es):
    • Date
    • Thread