Add decoding keys for NSStackViewContainer

This commit is contained in:
Gregory John Casamento 2021-05-26 02:31:43 -04:00
parent 386d5aee5f
commit 6e5abba867
2 changed files with 12 additions and 5 deletions

View file

@ -3034,10 +3034,6 @@ didStartElement: (NSString*)elementName
{
alignment = NSGridCellPlacementFill;
}
else // if not specified then assume none...
{
alignment = NSGridCellPlacementNone;
}
return [NSNumber numberWithInteger: alignment];
}

View file

@ -92,6 +92,10 @@
@end
@interface NSStackViewContainer : NSView
{
NSMutableArray *_nonDroppedViews;
NSMutableDictionary *_customAfterSpaceMap;
}
@end
@implementation NSStackViewContainer
@ -104,7 +108,14 @@
{
if ([coder containsValueForKey: @"NSStackViewContainerNonDroppedViews"])
{
// Holds all of the subviews of this container.
ASSIGN(_nonDroppedViews,
[coder decodeObjectForKey: @"NSStackViewContainerNonDroppedViews"]);
}
if ([coder containsValueForKey: @"NSStackViewContainerViewToCustomAfterSpaceMap"])
{
ASSIGN(_customAfterSpaceMap,
[coder decodeObjectForKey: @"NSStackViewContainerViewToCustomAfterSpaceMap"]);
}
}
}