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

Re: NSPopUpButton - addItemsWithTitles


  • Subject: Re: NSPopUpButton - addItemsWithTitles
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 14 Sep 2006 14:45:42 -0400

Derek:

  Seems easy enough to try, doesn't it? What results do you get?

--
I.S.


On Sep 14, 2006, at 2:37 PM, Derek Chung wrote:

I have set an NSPopUpButton with an array of strings like below:

myArray = [NSArray arrayWithObjects:@"a", @"b", @"c", @"d", nil];
myOtherArray = [NSArray arrayWithObjects:@"e", @"f", @"g", nil];
[myPopUp removeAllItems];
[myPopUp addItemsWithTitles:myArray];

Can I simply remove all Items in the NSPopUpButton and repopulate items with
another array like below?


[myPopUp removeAllItems];
[myPopUp addItemsWithTitles:myOtherArray];

Thanks for your help in advance.

- dnwood
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSPopUpButton - addItemsWithTitles (From: "Derek Chung" <email@hidden>)

  • Prev by Date: determine if Dashboard is active...
  • Next by Date: Intelligent NSFormatter
  • Previous by thread: NSPopUpButton - addItemsWithTitles
  • Next by thread: determine if Dashboard is active...
  • Index(es):
    • Date
    • Thread