Add NSScrollView keys for init/encodeWithCoder

This commit is contained in:
Gregory John Casamento 2021-10-27 12:34:58 -04:00
parent e9548dd057
commit 5666d7b7c2
2 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2021-10-27 Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSScrollView.m: Add scrollview keys from TP merge.
2021-10-27 Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSToolTips.m: Add extra pixels so that tool tip doesn't

View file

@ -1580,6 +1580,16 @@ GSOppositeEdge(NSRectEdge edge)
flags |= 512;
[aCoder encodeInt: flags forKey: @"NSsFlags"];
// XIB 5 keys...
[aCoder encodeInteger: _hLineScroll
forKey: @"horizontalLineScroll"];
[aCoder encodeInteger: _hPageScroll
forKey: @"horizontalPageScroll"];
[aCoder encodeInteger: _vLineScroll
forKey: @"verticalLineScroll"];
[aCoder encodeInteger: _vPageScroll
forKey: @"verticalPageScroll"];
}
else
{
@ -1644,6 +1654,16 @@ GSOppositeEdge(NSRectEdge edge)
/* _autohidesScroller, _rulersVisible, _hasHorizRuler and _hasVertRuler
implicitly set to NO */
// XIB 5 keys...
if ([aDecoder containsValueForKey: @"horizontalLineScroll"])
_hLineScroll = [aDecoder decodeIntegerForKey: @"horizontalLineScroll"];
if ([aDecoder containsValueForKey: @"horizontalPageScroll"])
_hPageScroll = [aDecoder decodeIntegerForKey: @"horizontalPageScroll"];
if ([aDecoder containsValueForKey: @"verticalLineScroll"])
_vLineScroll = [aDecoder decodeIntegerForKey: @"verticalLineScroll"];
if ([aDecoder containsValueForKey: @"verticalPageScroll"])
_vPageScroll = [aDecoder decodeIntegerForKey: @"verticalPageScroll"];
if ([aDecoder containsValueForKey: @"NSsFlags"])
{
int flags = [aDecoder decodeInt32ForKey: @"NSsFlags"];