Fixed a bunch of warnings on the OS X backend.
This commit is contained in:
parent
262ffb0bde
commit
ce96272f03
|
@ -7,7 +7,7 @@
|
|||
void *onClickedData;
|
||||
}
|
||||
- (IBAction)buttonClicked:(id)sender;
|
||||
- (void)setButton:(uiButton *)b;
|
||||
- (void)setButton:(uiButton *)newb;
|
||||
- (void)setOnClicked:(void (*)(uiButton *, void *))f data:(void *)data;
|
||||
@end
|
||||
|
||||
|
@ -18,9 +18,9 @@
|
|||
(*(self->onClicked))(self->b, self->onClickedData);
|
||||
}
|
||||
|
||||
- (void)setButton:(uiButton *)b
|
||||
- (void)setButton:(uiButton *)newb
|
||||
{
|
||||
self->b = b;
|
||||
self->b = newb;
|
||||
}
|
||||
|
||||
- (void)setOnClicked:(void (*)(uiButton *, void *))f data:(void *)data
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
void *onToggledData;
|
||||
}
|
||||
- (IBAction)checkboxToggled:(id)sender;
|
||||
- (void)setCheckbox:(uiCheckbox *)c;
|
||||
- (void)setCheckbox:(uiCheckbox *)newc;
|
||||
- (void)setOnToggled:(void (*)(uiCheckbox *, void *))f data:(void *)data;
|
||||
@end
|
||||
|
||||
|
@ -18,9 +18,9 @@
|
|||
(*(self->onToggled))(self->c, self->onToggledData);
|
||||
}
|
||||
|
||||
- (void)setCheckbox:(uiCheckbox *)c
|
||||
- (void)setCheckbox:(uiCheckbox *)newc
|
||||
{
|
||||
self->c = c;
|
||||
self->c = newc;
|
||||
}
|
||||
|
||||
- (void)setOnToggled:(void (*)(uiCheckbox *, void *))f data:(void *)data
|
||||
|
|
|
@ -130,7 +130,6 @@ static void containerHide(uiControl *cc)
|
|||
|
||||
static void containerEnable(uiControl *cc)
|
||||
{
|
||||
containerView *c = (containerView *) (cc->Internal);
|
||||
uiControlSysFuncParams p;
|
||||
|
||||
p.Func = uiDarwinSysFuncContainerEnable;
|
||||
|
@ -139,7 +138,6 @@ static void containerEnable(uiControl *cc)
|
|||
|
||||
static void containerDisable(uiControl *cc)
|
||||
{
|
||||
containerView *c = (containerView *) (cc->Internal);
|
||||
uiControlSysFuncParams p;
|
||||
|
||||
p.Func = uiDarwinSysFuncContainerDisable;
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// 9 april 2015
|
||||
#import "uipriv_darwin.h"
|
||||
|
||||
@interface entryDelegate : NSObject {
|
||||
@interface entryDelegate : NSObject <NSTextFieldDelegate> {
|
||||
uiEntry *e;
|
||||
void (*onChanged)(uiEntry *, void *);
|
||||
void *onChangedData;
|
||||
}
|
||||
- (void)controlTextDidChange:(NSNotification *)note;
|
||||
- (void)setEntry:(uiEntry *)e;
|
||||
- (void)setEntry:(uiEntry *)newe;
|
||||
- (void)setOnChanged:(void (*)(uiEntry *, void *))f data:(void *)data;
|
||||
@end
|
||||
|
||||
|
@ -18,9 +18,9 @@
|
|||
(*(self->onChanged))(self->e, self->onChangedData);
|
||||
}
|
||||
|
||||
- (void)setEntry:(uiEntry *)e
|
||||
- (void)setEntry:(uiEntry *)newe
|
||||
{
|
||||
self->e = e;
|
||||
self->e = newe;
|
||||
}
|
||||
|
||||
- (void)setOnChanged:(void (*)(uiEntry *, void *))f data:(void *)data
|
||||
|
|
|
@ -66,8 +66,8 @@ enum {
|
|||
|
||||
- (IBAction)onQuitClicked:(id)sender
|
||||
{
|
||||
if ([[NSApp delegate] applicationShouldTerminate:NSApp] == NSTerminateNow)
|
||||
[NSApp terminate:self];
|
||||
if (shouldQuit())
|
||||
uiQuit();
|
||||
}
|
||||
|
||||
- (void)register:(NSMenuItem *)item to:(struct menuItem *)smi
|
||||
|
|
Loading…
Reference in New Issue