diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-10 13:24:34 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-10 13:25:09 -0400 |
| commit | a38024c781524e326e3319c7b9f9f037ee01ba00 (patch) | |
| tree | 795e510a96dbafa38cc6c5166734ab91af1c3f27 /new/ui_darwin.h | |
| parent | 5bbaaeefe8b0ced1a2a16c50a2ebc3e4da9c432b (diff) | |
Eliminated direct use of strdup(); introduced uiDarwinNSStringToText() to do that work for us (and abort on failure).
Diffstat (limited to 'new/ui_darwin.h')
| -rw-r--r-- | new/ui_darwin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/new/ui_darwin.h b/new/ui_darwin.h index 672eb63..153ff51 100644 --- a/new/ui_darwin.h +++ b/new/ui_darwin.h @@ -15,6 +15,9 @@ This file assumes that you have imported <Cocoa/Cocoa.h> and "ui.h" beforehand. extern uiControl *uiDarwinNewControl(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(). +extern char *uiDarwinNSStringToText(NSString *); + struct uiSizingSys { // this structure currently left blank }; |
