mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fix distribution decoding for NSStackView
This commit is contained in:
parent
7a01dc7a99
commit
386d5aee5f
2 changed files with 22 additions and 3 deletions
|
@ -3082,7 +3082,7 @@ didStartElement: (NSString*)elementName
|
|||
}
|
||||
else if ([obj isEqualToString: @"equalSpacing"])
|
||||
{
|
||||
d = NSStackViewDistributionEqualCentering;
|
||||
d = NSStackViewDistributionEqualSpacing;
|
||||
}
|
||||
else if ([obj isEqualToString: @"fill"])
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue