mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
Add decoding keys for NSStackViewContainer
This commit is contained in:
parent
386d5aee5f
commit
6e5abba867
2 changed files with 12 additions and 5 deletions
|
@ -3034,10 +3034,6 @@ didStartElement: (NSString*)elementName
|
|||
{
|
||||
alignment = NSGridCellPlacementFill;
|
||||
}
|
||||
else // if not specified then assume none...
|
||||
{
|
||||
alignment = NSGridCellPlacementNone;
|
||||
}
|
||||
return [NSNumber numberWithInteger: alignment];
|
||||
}
|
||||
|
||||
|
|
|
@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue