mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 02:00:41 +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
d24ee43d13
commit
e30f29705f
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>
|
2006-08-19 10:33-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSBrowserCell.m: Improved encoding and decoding in
|
* Source/NSBrowserCell.m: Improved encoding and decoding in
|
||||||
|
|
|
@ -2503,6 +2503,11 @@ static NSTextFieldCell *titleCell;
|
||||||
[super encodeWithCoder: aCoder];
|
[super encodeWithCoder: aCoder];
|
||||||
if([aCoder allowsKeyedCoding])
|
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: _browserCellPrototype forKey: @"NSCellPrototype"];
|
||||||
[aCoder encodeObject: [self _getTitleOfColumn: 0] forKey: @"NSFirstColumnTitle"];
|
[aCoder encodeObject: [self _getTitleOfColumn: 0] forKey: @"NSFirstColumnTitle"];
|
||||||
[aCoder encodeObject: _pathSeparator forKey: @"NSPathSeparator"];
|
[aCoder encodeObject: _pathSeparator forKey: @"NSPathSeparator"];
|
||||||
|
@ -2521,7 +2526,7 @@ static NSTextFieldCell *titleCell;
|
||||||
[aCoder encodeInt: flags forKey: @"NSBrFlags"];
|
[aCoder encodeInt: flags forKey: @"NSBrFlags"];
|
||||||
|
|
||||||
[aCoder encodeInt: _maxVisibleColumns forKey: @"NSNumberOfVisibleColumns"];
|
[aCoder encodeInt: _maxVisibleColumns forKey: @"NSNumberOfVisibleColumns"];
|
||||||
[aCoder encodeFloat: _minColumnWidth forKey: @"NSMinColumnWidth"];
|
[aCoder encodeInt: _minColumnWidth forKey: @"NSMinColumnWidth"];
|
||||||
|
|
||||||
//[aCoder encodeInt: columnResizingType forKey: @"NSColumnResizingType"]];
|
//[aCoder encodeInt: columnResizingType forKey: @"NSColumnResizingType"]];
|
||||||
//[aCoder encodeInt: prefWidth forKey: @"NSPreferedColumnWidth"];
|
//[aCoder encodeInt: prefWidth forKey: @"NSPreferedColumnWidth"];
|
||||||
|
@ -2577,7 +2582,6 @@ static NSTextFieldCell *titleCell;
|
||||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||||
{
|
{
|
||||||
self = [super initWithCoder: aDecoder];
|
self = [super initWithCoder: aDecoder];
|
||||||
|
|
||||||
if ([aDecoder allowsKeyedCoding])
|
if ([aDecoder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
NSCell *proto = [aDecoder decodeObjectForKey: @"NSCellPrototype"];
|
NSCell *proto = [aDecoder decodeObjectForKey: @"NSCellPrototype"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue