diff options
Diffstat (limited to 'new/ui_darwin.h')
| -rw-r--r-- | new/ui_darwin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/new/ui_darwin.h b/new/ui_darwin.h index 02d0faa..e898c10 100644 --- a/new/ui_darwin.h +++ b/new/ui_darwin.h @@ -10,8 +10,8 @@ This file assumes that you have imported <Cocoa/Cocoa.h> and "ui.h" beforehand. // uiDarwinNewControl() creates a new uiControl with the given Cocoa control inside. // The first parameter should come from [RealControlType class]. // The two scrollView parameters allow placing scrollbars on the new control. -// The data parameter can be accessed with uiDarwinControlData(). -extern uiControl *uiDarwinNewControl(Class class, BOOL inScrollView, BOOL scrollViewHasBorder, void *data); -extern void *uiDarwinControlData(uiControl *c); +// Your control must call uiDarwinControlFree() on the returned uiControl in its -[dealloc] method. +extern uiControl *uiDarwinNewControl(Class class, BOOL inScrollView, BOOL scrollViewHasBorder); +extern void uiDarwinControlFree(uiControl *); #endif |
