Fixed some errors in the OS X build. IT WORKS! AND IS MUCH CLEANER NOW TOO!!!!
This commit is contained in:
parent
7b0004cfff
commit
47368bdfe9
|
@ -7,7 +7,7 @@
|
|||
void *onClickedData;
|
||||
}
|
||||
- (IBAction)buttonClicked:(id)sender;
|
||||
- (void)setButton(uiButton *)b;
|
||||
- (void)setButton:(uiButton *)b;
|
||||
- (void)setOnClicked:(void (*)(uiButton *, void *))f data:(void *)data;
|
||||
@end
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ uiCheckbox *uiNewCheckbox(const char *text)
|
|||
|
||||
c->checkbox = (NSButton *) VIEW(c);
|
||||
|
||||
[c-checkbox setTitle:toNSString(text)];
|
||||
[c->checkbox setTitle:toNSString(text)];
|
||||
[c->checkbox setButtonType:NSSwitchButton];
|
||||
[c->checkbox setBordered:NO];
|
||||
setStandardControlFont(c->checkbox);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
struct entry {
|
||||
uiEntry e;
|
||||
NSTextField *textfield;
|
||||
}
|
||||
};
|
||||
|
||||
static void destroy(void *data)
|
||||
{
|
||||
|
|
|
@ -13,8 +13,8 @@ This file assumes that you have imported <Cocoa/Cocoa.h> and "ui.h" beforehand.
|
|||
// The two onDestroy parameters define a function and its parameter to call when the widget is destroyed.
|
||||
// Your control must call uiDarwinControlFreeWhenAppropriate() on the returned uiControl in its -[viewDidMoveToSuperview] method.
|
||||
// If it returns a value other than NO, then the uiControl has been freed and you should set references to it to NULL.
|
||||
extern void uiDarwinNewControl(uiControl *c, Class class, BOOL inScrollView, BOOL scrollViewHasBorder);
|
||||
extern BOOL uiDarwinControlFreeWhenAppropriate(uiControl *c, NSView *newSuperview, void (*onDestroy)(void *), void *onDestroyData);
|
||||
extern void uiDarwinNewControl(uiControl *c, Class class, BOOL inScrollView, BOOL scrollViewHasBorder, void (*onDestroy)(void *), void *onDestroyData);
|
||||
extern BOOL uiDarwinControlFreeWhenAppropriate(uiControl *c, NSView *newSuperview);
|
||||
|
||||
// You can use this function from within your control implementations to return text strings that can be freed with uiTextFree().
|
||||
extern char *uiDarwinNSStringToText(NSString *);
|
||||
|
|
Loading…
Reference in New Issue