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

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) ...@@ -73,6 +73,17 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:) name:NSControlTextDidChangeNotification object:field]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:) name:NSControlTextDidChangeNotification object:field];
return field; return field;
} }
case EXTENSION_WIDGET_CHECK_BOX:
{
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;
}
case EXTENSION_WIDGET_BUTTON: case EXTENSION_WIDGET_BUTTON:
{ {
VLCDialogButton *button = [[VLCDialogButton alloc] init]; VLCDialogButton *button = [[VLCDialogButton alloc] init];
......
Markdown is supported
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