From a38024c781524e326e3319c7b9f9f037ee01ba00 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 10 Apr 2015 13:24:34 -0400 Subject: Eliminated direct use of strdup(); introduced uiDarwinNSStringToText() to do that work for us (and abort on failure). --- new/ui_darwin.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'new/ui_darwin.h') 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 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 }; -- cgit v1.2.3