Sun, 25 Jan 2026 10:28:37 +0100
change return type of ui_list_getselection from UiListSelection to int, add ui_list_get_selection for returning UiListSelection
#import "BoxContainer.h" @implementation BoxContainer - (BoxContainer*)init:(NSUserInterfaceLayoutOrientation)orientation spacing:(int)spacing { self = [super init]; _orientation = orientation; self.columnspacing = spacing; self.rowspacing = spacing; return self; } - (void) addView:(NSView*)view layout:(UiLayout*)layout { if(_orientation == NSUserInterfaceLayoutOrientationVertical) { layout->hexpand = TRUE; layout->hfill = TRUE; } else { layout->vexpand = TRUE; layout->vfill = TRUE; } [super addView:view layout:layout]; if(_orientation == NSUserInterfaceLayoutOrientationVertical) { self.container->newline = TRUE; } } @end