Re: NSPopUpButton - addItemsWithTitles
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