--- a/ui/cocoa/BoxContainer.m Sat Oct 04 14:54:25 2025 +0200 +++ b/ui/cocoa/BoxContainer.m Sun Oct 19 21:20:08 2025 +0200 @@ -13,20 +13,17 @@ return self; } -- (void) addView:(NSView*)view { - UiLayout layout = self.uilayout; +- (void) addView:(NSView*)view layout:(UiLayout*)layout { if(_orientation == NSUserInterfaceLayoutOrientationVertical) { - layout.hexpand = TRUE; - layout.hfill = TRUE; + layout->hexpand = TRUE; + layout->hfill = TRUE; } else { - layout.vexpand = TRUE; - layout.vfill = TRUE; - self.newline = FALSE; + layout->vexpand = TRUE; + layout->vfill = TRUE; } - self.uilayout = layout; - [super addView:view]; + [super addView:view layout:layout]; if(_orientation == NSUserInterfaceLayoutOrientationVertical) { - self.newline = TRUE; + self.container->newline = TRUE; } }