From 1e6fa93ea2e344dd6aa2db2ba0b3f305db33c9d0 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Thu, 19 Nov 2009 13:26:02 -0800 Subject: [PATCH] Fix for NSScrollView breaking nib2cib. Reviewed by me. --- Tools/nib2cib/NSScrollView.j | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Tools/nib2cib/NSScrollView.j b/Tools/nib2cib/NSScrollView.j index d53df6e86..c4d920b39 100644 --- a/Tools/nib2cib/NSScrollView.j +++ b/Tools/nib2cib/NSScrollView.j @@ -35,12 +35,9 @@ _horizontalScroller = [aCoder decodeObjectForKey:"NSHScroller"]; _contentView = [aCoder decodeObjectForKey:"NSContentView"]; - _hasVerticalScroller = !Boolean(flags & (1 << 4)); - _hasHorizontalScroller = !Boolean(flags & (1 << 5)); - _autohidesScrollers = Boolean(flags & (1 << 9)); - - [self setHasHorizontalScroller:!_hasHorizontalScroller]; - [self setHasVerticalScroller:!_hasVerticalScroller]; + _hasVerticalScroller = !!(flags & (1 << 4)); + _hasHorizontalScroller = !!(flags & (1 << 5)); + _autohidesScrollers = !!(flags & (1 << 9)); //[aCoder decodeBytesForKey:"NSScrollAmts"]; _verticalLineScroll = 10.0;