diff --git a/ChangeLog b/ChangeLog index 278833bed..9ec3d9aa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-02-14 Wolfgang Lux + + * Source/NSTabViewItem.m (-init, -initWithItemIdentifier:): + Create a default content view for new tab view items. Compatible + with Apple. + 2011-02-14 Fred Kiefer * Source/NSOutlineView.m (-editColumn:...select:): Bring closer to diff --git a/Source/NSTabViewItem.m b/Source/NSTabViewItem.m index 13aeded8d..814b66f97 100644 --- a/Source/NSTabViewItem.m +++ b/Source/NSTabViewItem.m @@ -36,6 +36,11 @@ @implementation NSTabViewItem +- (id) init +{ + return [self initWithIdentifier: @""]; +} + - (id) initWithIdentifier: (id)identifier { self = [super init]; @@ -44,6 +49,7 @@ { ASSIGN(_ident, identifier); _state = NSBackgroundTab; + _view = [NSView new]; // Use the window background colour as default, not the control background colour. [self setColor: [NSColor windowBackgroundColor]]; }