* Source/NSBrowser.m: Added comment in encodeWithCoder:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23316 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2006-08-19 19:56:47 +00:00
parent d24ee43d13
commit e30f29705f
2 changed files with 10 additions and 2 deletions

View file

@ -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"];