diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-16 13:04:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-16 13:04:46 -0400 |
| commit | f3867ee2d4091fde0c1cfcdadf7c10a07ffebff2 (patch) | |
| tree | 738426171e987c9d089ca78d460438220a0dbd36 /new/ui_darwin.h | |
| parent | 79ef30c8775cb05446046bd63af25a18df1d3238 (diff) | |
Began Darwin backend migration.
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 153ff51..cab61d1 100644 --- a/new/ui_darwin.h +++ b/new/ui_darwin.h @@ -7,12 +7,12 @@ This file assumes that you have imported <Cocoa/Cocoa.h> and "ui.h" beforehand. #ifndef __UI_UI_DARWIN_H__ #define __UI_UI_DARWIN_H__ -// uiDarwinNewControl() creates a new uiControl with the given Cocoa control inside. -// The first parameter should come from [RealControlType class]. +// uiDarwinNewControl() initializes the given uiControl with the given Cocoa control inside. +// The second parameter should come from [RealControlType class]. // The two scrollView parameters allow placing scrollbars on the new control. // Your control must call uiDarwinControlFreeWhenAppropriate() on the returned uiControl in its -[viewDidMoveToSuperview] method. // If it returns a value other than NO, then the uiControl has been freed and you should set references to it to NULL. -extern uiControl *uiDarwinNewControl(Class class, BOOL inScrollView, BOOL scrollViewHasBorder); +extern void uiDarwinNewControl(uiControl *c, Class class, BOOL inScrollView, BOOL scrollViewHasBorder); extern BOOL uiDarwinControlFreeWhenAppropriate(uiControl *c, NSView *newSuperview); // You can use this function from within your control implementations to return text strings that can be freed with uiTextFree(). |
