Re: Organising visual content of NSPopUpButton
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