Fixed runtime errors. It seems to work! An autolayout step will need to be added...

This commit is contained in:
Pietro Gagliardi 2016-04-25 13:44:13 -04:00
parent d0d0efce1a
commit 5cfcf81a67
1 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ _UI_EXTERN void uiDarwinControlSetSuperview(uiDarwinControl *, NSView *);
{ \ { \
uiControlVerifyDestroy(c); \ uiControlVerifyDestroy(c); \
[type(c)->handlefield release]; \ [type(c)->handlefield release]; \
uiFreeControl(c); \
} }
#define uiDarwinControlDefaultHandle(type, handlefield) \ #define uiDarwinControlDefaultHandle(type, handlefield) \
static uintptr_t type ## Handle(uiControl *c) \ static uintptr_t type ## Handle(uiControl *c) \
@ -133,7 +134,9 @@ _UI_EXTERN void uiDarwinControlSetSuperview(uiDarwinControl *, NSView *);
uiControl(var)->Enable = type ## Enable; \ uiControl(var)->Enable = type ## Enable; \
uiControl(var)->Disable = type ## Disable; \ uiControl(var)->Disable = type ## Disable; \
uiControl(var)->SyncEnableState = type ## SyncEnableState; \ uiControl(var)->SyncEnableState = type ## SyncEnableState; \
uiDarwinControl(var)->SetSuperview = type ## SetSuperview; uiDarwinControl(var)->SetSuperview = type ## SetSuperview; \
uiDarwinControl(var)->visible = YES; \
uiDarwinControl(var)->enabled = YES;
// TODO document // TODO document
_UI_EXTERN uiDarwinControl *uiDarwinAllocControl(size_t n, uint32_t typesig, const char *typenamestr); _UI_EXTERN uiDarwinControl *uiDarwinAllocControl(size_t n, uint32_t typesig, const char *typenamestr);