mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 09:51:03 +00:00
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:
parent
9015fa656e
commit
03e73ef171
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue