Re: PopupButton help
Re: PopupButton help
- Subject: Re: PopupButton help
- From: Chris Garaffa <email@hidden>
- Date: Tue, 9 Dec 2003 11:56:15 -0500
On Dec 9, 2003, at 11:42 AM, Kurt Marek wrote:
I'm just getting started trying to implement an NSPopupButton and I'm
having trouble figuring out the easiest way to populate the NSMenu
that goes along with it. The popupButton will be used in conjunction
with an 'add' button so that the user can quickly add attributes from
the popupbutton that correspond to their document, like categories
such as Friends, Family, Coworkers, etc. I want the popupbutton's
NSMenu to be customizable, so I need an 'Edit list' menuitem always
present.
2) How do I put in a divider?
Use NSMenu's addItem to add [NSMenuItem separatorItem]:
[someMenu addItem: [NSMenuItem separatorItem]];
Hope that helps!
--
Chris Garaffa
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.