diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 16:38:51 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 16:38:51 -0400 |
| commit | 77a60d63a6aa6ffc02c541a8cdc7483744cc827c (patch) | |
| tree | 95da186810be45a756d8433e437c268ef3714456 /new/button_darwin.m | |
| parent | 3969095a33a518023564ec32f8373bbad913b6c3 (diff) | |
Fixed compiler errors and bugs. uiButton on Mac OS X works!
Diffstat (limited to 'new/button_darwin.m')
| -rw-r--r-- | new/button_darwin.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/new/button_darwin.m b/new/button_darwin.m index 85d25fa..7daf209 100644 --- a/new/button_darwin.m +++ b/new/button_darwin.m @@ -28,9 +28,9 @@ uiControl *uiNewButton(const char *text) NSButton *bb; b = [button new]; - b->c = uiDarwinNewControl([NSButton class], NO, NO, b); + b.c = uiDarwinNewControl([NSButton class], NO, NO, b); - bb = (NSButton *) uiDarwinControlData(b->c); + bb = (NSButton *) uiControlHandle(b.c); [bb setTitle:toNSString(text)]; [bb setButtonType:NSMomentaryPushInButton]; [bb setBordered:YES]; @@ -40,9 +40,9 @@ uiControl *uiNewButton(const char *text) [bb setTarget:b]; [bb setAction:@selector(buttonClicked:)]; - b->onClicked = defaultOnClicked; + b.onClicked = defaultOnClicked; - return b->c; + return b.c; } // TODO text @@ -52,6 +52,6 @@ void uiButtonOnClicked(uiControl *c, void (*f)(uiControl *, void *), void *data) button *b; b = (button *) uiDarwinControlData(c); - b->onClicked = f; - b->onClickedData = data; + b.onClicked = f; + b.onClickedData = data; } |
