diff --git a/ChangeLog b/ChangeLog index 707fd33a7..4af595776 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-08-19 15:56-EDT Gregory John Casamento + + * Source/NSBrowser.m: Added comment in encodeWithCoder:. + 2006-08-19 10:33-EDT Gregory John Casamento * Source/NSBrowserCell.m: Improved encoding and decoding in diff --git a/Source/NSBrowser.m b/Source/NSBrowser.m index 8f78e22e3..f3724081a 100644 --- a/Source/NSBrowser.m +++ b/Source/NSBrowser.m @@ -2503,6 +2503,11 @@ static NSTextFieldCell *titleCell; [super encodeWithCoder: aCoder]; if([aCoder allowsKeyedCoding]) { + // + // NOTE: The browserview under GS uses an NSMatrix subview, the one under + // Cocoa does not. This will cause IB to issue an "inconsistency" alert + // which is minor and nothing to worry about. + // [aCoder encodeObject: _browserCellPrototype forKey: @"NSCellPrototype"]; [aCoder encodeObject: [self _getTitleOfColumn: 0] forKey: @"NSFirstColumnTitle"]; [aCoder encodeObject: _pathSeparator forKey: @"NSPathSeparator"]; @@ -2521,7 +2526,7 @@ static NSTextFieldCell *titleCell; [aCoder encodeInt: flags forKey: @"NSBrFlags"]; [aCoder encodeInt: _maxVisibleColumns forKey: @"NSNumberOfVisibleColumns"]; - [aCoder encodeFloat: _minColumnWidth forKey: @"NSMinColumnWidth"]; + [aCoder encodeInt: _minColumnWidth forKey: @"NSMinColumnWidth"]; //[aCoder encodeInt: columnResizingType forKey: @"NSColumnResizingType"]]; //[aCoder encodeInt: prefWidth forKey: @"NSPreferedColumnWidth"]; @@ -2577,7 +2582,6 @@ static NSTextFieldCell *titleCell; - (id) initWithCoder: (NSCoder*)aDecoder { self = [super initWithCoder: aDecoder]; - if ([aDecoder allowsKeyedCoding]) { NSCell *proto = [aDecoder decodeObjectForKey: @"NSCellPrototype"];