Fixed default height in tableheader for Nib2Cib.

This commit is contained in:
Randall Luecke
2010-03-28 15:04:41 -07:00
committed by Francisco Ryan Tolmasky I
parent d47cbc4453
commit 851632c2d5
4 changed files with 17 additions and 2 deletions
File diff suppressed because one or more lines are too long
+3
View File
@@ -32,7 +32,10 @@
// change the default height
if (_bounds.size.height === 17)
{
_bounds.size.height = 23;
_frame.size.height = 23;
}
}
return self;
+3
View File
@@ -41,6 +41,9 @@
// Convert xib default to cib default
if (_rowHeight == 17)
_rowHeight = 23;
if ([_gridColor isEqual:[CPColor colorWithRed:127.0 / 255.0 green:127.0 / 255.0 blue:127.0 / 255.0 alpha:1.0]])
_gridColor = [CPColor colorWithRed:229.0 / 255.0 green:229.0 / 255.0 blue:229.0 / 255.0 alpha:1.0];
_headerView = [aCoder decodeObjectForKey:@"NSHeaderView"];
_cornerView = [aCoder decodeObjectForKey:@"NSCornerView"];
+10 -1
View File
@@ -37,7 +37,16 @@
- (id)initWithCoder:(CPCoder)aCoder
{
return [self NS_initWithCoder:aCoder];
self = [super NS_initWithCoder:aCoder];
if (self)
{
[self setBackgroundColor:[CPColor colorWithPatternImage:CPAppKitImage("tableview-headerview.png", CGSizeMake(1.0, 23.0))]];
_frame.size.height = 23.0;
_bounds.size.height = 23.0;
}
return self;
}
- (Class)classForKeyedArchiver