Commit d55ae1b8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx_dialog_provider: handle EXTENSION_WIDGET_CHECK_BOX and fixed a few...

macosx_dialog_provider: handle EXTENSION_WIDGET_CHECK_BOX and fixed a few warnings pointed by clang's static analyser
parent 2af5e585
......@@ -35,10 +35,10 @@
}
- (void)createContentView;
- setDialogTitle:(NSString *)title;
- setDialogMessage:(NSString *)message;
- setCancelButtonLabel:(NSString *)cancelLabel;
- setProgressAsDouble:(double)value;
- (void)setDialogTitle:(NSString *)title;
- (void)setDialogMessage:(NSString *)message;
- (void)setCancelButtonLabel:(NSString *)cancelLabel;
- (void)setProgressAsDouble:(double)value;
- (BOOL)isCancelled;
- (IBAction)cancelDialog:(id)sender;
......
......@@ -106,23 +106,23 @@
[ourContentView addSubview:_iconView];
}
- setDialogTitle:(NSString *)title
- (void)setDialogTitle:(NSString *)title
{
[_titleField setStringValue:title];
[self setTitle:title];
}
- setDialogMessage:(NSString *)message
- (void)setDialogMessage:(NSString *)message
{
[_messageField setStringValue:message];
}
- setCancelButtonLabel:(NSString *)cancelLabel
- (void)setCancelButtonLabel:(NSString *)cancelLabel
{
[_cancelButton setTitle:cancelLabel];
}
- setProgressAsDouble:(double)value
- (void)setProgressAsDouble:(double)value
{
[_progressBar setDoubleValue:value];
}
......
......@@ -703,6 +703,7 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget,
[attrString release];
break;
}
case EXTENSION_WIDGET_CHECK_BOX:
case EXTENSION_WIDGET_BUTTON:
{
assert([control isKindOfClass:[NSButton class]]);
......
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