Commit 41aa370b authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: add support for checkboxes created through lua scripts (close #8561)

parent fb56090c
......@@ -73,6 +73,17 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:) name:NSControlTextDidChangeNotification object:field];
return field;
VLCDialogButton *button = [[VLCDialogButton alloc] init];
[button setButtonType:NSSwitchButton];
[button setWidget:widget];
[button setAction:@selector(triggerClick:)];
[button setTarget:self];
[[button cell] setControlSize:NSRegularControlSize];
[button setAutoresizingMask:NSViewWidthSizable];
return button;
VLCDialogButton *button = [[VLCDialogButton alloc] init];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment