Fix distribution decoding for NSStackView

This commit is contained in:
Gregory John Casamento 2021-05-25 12:56:57 -04:00
parent 7a01dc7a99
commit 386d5aee5f
2 changed files with 22 additions and 3 deletions

View file

@ -3082,7 +3082,7 @@ didStartElement: (NSString*)elementName
}
else if ([obj isEqualToString: @"equalSpacing"])
{
d = NSStackViewDistributionEqualCentering;
d = NSStackViewDistributionEqualSpacing;
}
else if ([obj isEqualToString: @"fill"])
{

View file

@ -95,6 +95,25 @@
@end
@implementation NSStackViewContainer
- (instancetype) initWithCoder: (NSCoder *)coder
{
self = [super initWithCoder: coder];
if (self != nil)
{
if ([coder allowsKeyedCoding])
{
if ([coder containsValueForKey: @"NSStackViewContainerNonDroppedViews"])
{
// Holds all of the subviews of this container.
}
}
}
return self;
}
- (void) encodeWithCoder: (NSCoder *)coder
{
}
@end
@implementation NSStackView
@ -293,7 +312,7 @@
}
// Overridden methods
/*
- (NSArray *) subviews
{
if (_beginningContainer != nil)
@ -309,7 +328,7 @@
}
return [super subviews];
}*/
}
// Properties
- (void) setDelegate: (id<NSStackViewDelegate>)delegate