summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 04:48:03 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 04:48:03 -0400
commitab393ed6b2c85c679ea539c82d15a45d7cfd5f1d (patch)
tree3da2d43077e5253e0db1ded6ee454dcece846bf3
parenta850ea3ac55a56e54cefca6b0adc6cd2caef4082 (diff)
Fixed compilation errors. Hm, nothing is still freed...
-rw-r--r--new/button_darwin.m9
1 files changed, 4 insertions, 5 deletions
diff --git a/new/button_darwin.m b/new/button_darwin.m
index 30cf179..4173f1c 100644
--- a/new/button_darwin.m
+++ b/new/button_darwin.m
@@ -5,7 +5,6 @@
@property uiControl *uiC;
@property void (*uiOnClicked)(uiControl *, void *);
@property void *uiOnClickedData;
-@property NSMutableArray *uiFreeList;
@end
@implementation uiNSButton
@@ -34,7 +33,7 @@ uiControl *uiNewButton(const char *text)
uiControl *c;
uiNSButton *b;
- c = uiDarwinNewControl([uiNSButton class], NO, NO, NULL);
+ c = uiDarwinNewControl([uiNSButton class], NO, NO);
b = (uiNSButton *) uiControlHandle(c);
b.uiC = c;
@@ -42,21 +41,21 @@ uiControl *uiNewButton(const char *text)
[b setButtonType:NSMomentaryPushInButton];
[b setBordered:YES];
[b setBezelStyle:NSRoundedBezelStyle];
- setStandardControlFont((NSControl *) bb);
+ setStandardControlFont((NSControl *) b);
[b setTarget:b];
[b setAction:@selector(uiButtonClicked:)];
b.uiOnClicked = defaultOnClicked;
- return b.c;
+ return b.uiC;
}
// TODO text
void uiButtonOnClicked(uiControl *c, void (*f)(uiControl *, void *), void *data)
{
- button *b;
+ uiNSButton *b;
b = (uiNSButton *) uiControlHandle(c);
b.uiOnClicked = f;