Use NSPopupButton addItemsWithTitles method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2013-04-14 23:46:50 +00:00
parent 9015fa656e
commit 03e73ef171

View file

@ -578,8 +578,7 @@ this to return nil to indicate that we have no context menu.
NSArray *array = (NSArray*)anObject; NSArray *array = (NSArray*)anObject;
NSInteger index = 0; NSInteger index = 0;
[self removeAllItems]; [self removeAllItems];
for (index = 0; index < [array count]; ++index) [self addItemsWithTitles:array];
[self insertItemWithTitle:AUTORELEASE([[array objectAtIndex: index] copy]) atIndex:index];
} }
else else
{ {