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

PopupButton help


  • Subject: PopupButton help
  • From: Kurt Marek <email@hidden>
  • Date: Tue, 9 Dec 2003 08:42:18 -0800

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.

Here are my questions:

1) Is there a way to bind the contents of an NSMenu to an array? Then I could just add/remove objects from the array during the 'Edit list' method.

2) How do I put in a divider?

Thanks,
Kurt
_______________________________________________
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: Stephane Sudre <email@hidden>
    • Re: PopupButton help
      • From: Chris Garaffa <email@hidden>
  • Prev by Date: Re: Toolbars
  • Next by Date: Capturing slider movement in NSSlider
  • Previous by thread: Re: Live update of NSTextField in tool bar
  • Next by thread: Re: PopupButton help
  • Index(es):
    • Date
    • Thread