summaryrefslogtreecommitdiff
path: root/new/ui_darwin.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 04:35:50 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 04:35:50 -0400
commit941825e1902d7ccdea93ad21f518a8c60ce271b2 (patch)
tree81f39bf8afab350e6a002a1e655774e387f20bb5 /new/ui_darwin.h
parent4ab6251449b4c88869b12514f67c8731ab14c93c (diff)
Cleaned out some of that gunk. I can't avoid subclassing the standard controls, but making it so that the uiControl returned by uiDarwinNewControl() can be freed by the caller will help.
Diffstat (limited to 'new/ui_darwin.h')
-rw-r--r--new/ui_darwin.h6
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