• 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: PopupButton help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: PopupButton help
      • From: j o a r <email@hidden>
References: 
 >PopupButton help (From: Kurt Marek <email@hidden>)

  • Prev by Date: Capturing slider movement in NSSlider
  • Next by Date: Multiple TableView data sources
  • Previous by thread: PopupButton help
  • Next by thread: Re: PopupButton help
  • Index(es):
    • Date
    • Thread