diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 15:08:49 -0400 |
| commit | 6b08a2b18f9c5f0ddc01a37e2cf26fa7bdf9d98e (patch) | |
| tree | cbec9d83a0302928dab0855cd9daa87720d56ac1 /new/darwin/checkbox.m | |
| parent | 946b3ea34228e92eb39b1be587ede058d8942e34 (diff) | |
Fixed the OS X build, including warnings. It works. I'm still a bit unhappy about the way these backends are turning out...
Diffstat (limited to 'new/darwin/checkbox.m')
| -rw-r--r-- | new/darwin/checkbox.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/new/darwin/checkbox.m b/new/darwin/checkbox.m index 5ad6961..a7ccfb3 100644 --- a/new/darwin/checkbox.m +++ b/new/darwin/checkbox.m @@ -50,7 +50,7 @@ static void checkboxOnToggled(uiCheckbox *c, void (*f)(uiCheckbox *, void *), vo { uiCheckboxNSButton *cc; - cc = (uiCheckboxNSButton *) uiControlHandle(uiCheckbox(c)); + cc = (uiCheckboxNSButton *) uiControlHandle(uiControl(c)); cc.uiOnToggled = f; cc.uiOnToggledData = data; } @@ -83,7 +83,7 @@ uiCheckbox *uiNewCheckbox(const char *text) c = uiNew(uiCheckbox); uiDarwinNewControl(uiControl(c), [uiCheckboxNSButton class], NO, NO); - cc = (uiCheckboxNSButton *) uiControlHandle(c); + cc = (uiCheckboxNSButton *) uiControlHandle(uiControl(c)); [cc setTitle:toNSString(text)]; [cc setButtonType:NSSwitchButton]; |
