mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* 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:
parent
f3a5a67c45
commit
9381ab8eec
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-08-19 15:56-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSBrowser.m: Added comment in encodeWithCoder:.
|
||||
|
||||
2006-08-19 10:33-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSBrowserCell.m: Improved encoding and decoding in
|
||||
|
|
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue