From 10d7bf704f9c47a604368e883ee0792c82b563ff Mon Sep 17 00:00:00 2001 From: Marcian Lytwyn Date: Wed, 1 Feb 2017 00:33:13 +0000 Subject: [PATCH] Parse use alternating background colors bit git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40316 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTableView.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Source/NSTableView.m b/Source/NSTableView.m index 5e6702036..b64c10b42 100644 --- a/Source/NSTableView.m +++ b/Source/NSTableView.m @@ -5900,6 +5900,7 @@ This method is deprecated, use -columnIndexesInRect:. */ [self setAllowsColumnResizing: tableViewFlags.columnResizing]; [self setAllowsColumnReordering: tableViewFlags.columnOrdering]; [self setAutosaveTableColumns: tableViewFlags.columnAutosave]; + [self setUsesAlternatingRowBackgroundColors: tableViewFlags.alternatingRowBackgroundColors]; } if ([aDecoder containsValueForKey: @"NSGridStyleMask"]) @@ -5942,16 +5943,6 @@ This method is deprecated, use -columnIndexesInRect:. */ NSLog(@"%s:unsupported column autoresizing style: %d", __PRETTY_FUNCTION__, _columnAutoresizingStyle); } } - - // Check for XIB 5 attributes not used previously... - if ([[aDecoder class] coderVersion] > 0) - { - if ([aDecoder containsValueForKey: @"alternatingRowBackgroundColors"]) - { - BOOL flag = [aDecoder decodeBoolForKey: @"alternatingRowBackgroundColors"]; - [self setUsesAlternatingRowBackgroundColors: flag]; - } - } [self tile]; /* Initialize _columnOrigins */ }