diff --git a/Tools/nib2cib/NSSplitView.j b/Tools/nib2cib/NSSplitView.j index 6079cbd7b..741b970af 100644 --- a/Tools/nib2cib/NSSplitView.j +++ b/Tools/nib2cib/NSSplitView.j @@ -22,6 +22,7 @@ @import +var NSThinDividerStyle = 2; @implementation CPSplitView (CPCoding) @@ -30,7 +31,11 @@ if (self = [super NS_initWithCoder:aCoder]) { _isVertical = [aCoder decodeBoolForKey:@"NSIsVertical"]; - _isPaneSplitter = [aCoder decodeIntForKey:@"NSDividerStyle"] == 3; + + // The possible values appear to be: no value (thick divider), 2 (thin divider) and 3 (pane splitter). For + // Cappuccino's purposes we treat thick divider and pane splitter as the same thing since the only difference + // seems to be graphical. + _isPaneSplitter = [aCoder decodeIntForKey:@"NSDividerStyle"] != NSThinDividerStyle; _autosaveName = [aCoder decodeObjectForKey:@"NSAutosaveName"]; }