• 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
Populating an NSPopUpButton from an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Populating an NSPopUpButton from an array


  • Subject: Populating an NSPopUpButton from an array
  • From: Ryan Zachary Hale <email@hidden>
  • Date: Tue, 25 Mar 2003 17:03:25 -0600

Trying this again since I got no replies:

In my Cocoa app I would like to add items to a PopUpMenu for each "record"
in an NSMutableArray. For example: it the user has added the title a record to my Array (that I store in UserDefaults), then each array item (0, 1, 2, etc) would contain "SiteName" and "SitePath".

What I need now is a way to make as many menu items as their are array items, and set each one to the corresponding "SiteName" key/value.

I tried addItemsWithTitles:myArray but this isn't working. Any other ideas?


Ryan Zachary Hale
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.

  • Prev by Date: Re: 3 obj-c/cocoa beginner q's
  • Next by Date: Re: NSBezierPath winding rules and glyphs
  • Previous by thread: RE:Send TCP Data ??CurlHandle.framework
  • Next by thread: Re: Populating an NSPopUpButton from an array
  • Index(es):
    • Date
    • Thread