Removed redundant code, fixed to work with theming of tableview grid color

This commit is contained in:
Aparajita Fishman committed 2010-07-23 12:08:22 -04:00
1 parent 9450f63f2a
commit fe2bc9f523
1 file changed
+5 -6
+5 -6
View File
@@ -41,9 +41,6 @@
// 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"];
@@ -53,11 +50,13 @@
_intercellSpacing = CGSizeMake(0.0, 0.0);//CGSizeMake([aCoder decodeFloatForKey:"NSIntercellSpacingWidth"], [aCoder decodeFloatForKey:"NSIntercellSpacingHeight"]);
_gridColor = [aCoder decodeObjectForKey:@"NSGridColor"];
var gridColor = [aCoder decodeObjectForKey:@"NSGridColor"];
// Convert xib default to cib default
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];
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];
[self setValue:gridColor forThemeAttribute:"grid-color"];
_gridStyleMask = [aCoder decodeIntForKey:@"NSGridStyleMask"];