diff --git a/Tools/nib2cib/NSClipView.j b/Tools/nib2cib/NSClipView.j index a60e3c82f..eb7ed5c88 100644 --- a/Tools/nib2cib/NSClipView.j +++ b/Tools/nib2cib/NSClipView.j @@ -23,18 +23,21 @@ @import +var NSClipViewDrawBackgroundFlag = 0x04; + + @implementation CPClipView (CPCoding) - (id)NS_initWithCoder:(CPCoder)aCoder { if (self = [super NS_initWithCoder:aCoder]) { - _documentView = [aCoder decodeObjectForKey:"NSDocView"]; + _documentView = [aCoder decodeObjectForKey:@"NSDocView"]; - if ([aCoder containsValueForKey:"NSBGColor"]) - [self setBackgroundColor:[aCoder decodeObjectForKey:"NSBGColor"]]; + var flags = [aCoder decodeIntForKey:@"NScvFlags"]; - //var flags = [aCoder decodeIntForKey:"NScvFlags"]; + if ((flags & NSClipViewDrawBackgroundFlag) && [aCoder containsValueForKey:@"NSBGColor"]) + [self setBackgroundColor:[aCoder decodeObjectForKey:@"NSBGColor"]]; } return self;