From 08c3602130e01368e8c894e3a7f51be0baade2aa Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 1 Aug 2015 22:38:01 -0400 Subject: [PATCH] Saved stretchy values in box.m. We'll need to figure out how to incorporate these into the generated files... --- redo/osxaltest/box.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redo/osxaltest/box.m b/redo/osxaltest/box.m index 413ae323..490c2dcb 100644 --- a/redo/osxaltest/box.m +++ b/redo/osxaltest/box.m @@ -3,6 +3,7 @@ @implementation tBox { NSMutableArray *children; + NSMutableArray *stretchy; NSView *sv; BOOL vertical; id parent; @@ -13,6 +14,7 @@ self = [super init]; if (self) { self->children = [NSMutableArray new]; + self->stretchy = [NSMutableArray new]; self->sv = nil; self->vertical = vert; self->parent = nil; @@ -25,6 +27,7 @@ if (self->sv != nil) [c tSetParent:self->parent addToView:self->sv]; [self->children addObject:c]; + [self->stretchy addObject:[NSNumber numberWithBool:s]]; // TODO mark as needing relayout [self tRelayout]; }