diff --git a/ChangeLog b/ChangeLog index 9733732ee..3359caca5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-10 Fred Kiefer + + * Source/NSPopUpButtonCell.m (-insertItemWithTitle:atIndex:): + Select new item when there isn't any selection. + 2007-09-10 Fred Kiefer * Source/NSTableHeaderView.m, diff --git a/Source/NSPopUpButtonCell.m b/Source/NSPopUpButtonCell.m index 7a89e6088..852de2ff8 100644 --- a/Source/NSPopUpButtonCell.m +++ b/Source/NSPopUpButtonCell.m @@ -359,6 +359,12 @@ static NSImage *_pbc_image[2]; // FIXME: The documentation is unclear what to set here. //[anItem setAction: [self action]]; //[anItem setTarget: [self target]]; + + // Select the new item if there isn't any selection. + if (_selectedItem == nil) + { + [self selectItem: anItem]; + } } /**