Skip navigation.
 
mlCreating a CFString from a NSString
FROM : Stefan Johansson
DATE : Mon Jan 27 03:19:02 2003

Hi,

I'm not so familiar with Core Foundation, and I got a little confused with
the CF functions.

Basically, I have the following:

runPtr = (void*)CFBundleGetFunctionPointerForName(myBundle, CFSTR("run"));

Here I want to replace the CFSTR("run") with the contents of a NSString
(converted to a CFString of course). The NSString may hold something like
"run".

It seems very simple and I looked at the CFStringCreateWithCString call, but
got a bit confused about the parameters and return type.

A quick help would be appreciated :)

Thanks,
Stefan



Related mailsAuthorDate
mlCreating a CFString from a NSString Stefan Johansson Jan 27, 03:19
mlRe: Creating a CFString from a NSString Ronald Oussoren Jan 27, 03:38