--- a/ui/cocoa/BoxContainer.m Mon Oct 13 21:31:58 2025 +0200 +++ b/ui/cocoa/BoxContainer.m Tue Oct 14 09:45:44 2025 +0200 @@ -13,17 +13,15 @@ return self; } -- (void) addView:(NSView*)view margin:(NSEdgeInsets)margin { - 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; + layout->vexpand = TRUE; + layout->vfill = TRUE; } - self.uilayout = layout; - [super addView:view margin:margin]; + [super addView:view layout:layout]; if(_orientation == NSUserInterfaceLayoutOrientationVertical) { self.container->newline = TRUE; }