FROM : Ronald Oussoren
DATE : Mon Jan 27 03:38:01 2003
On Monday, Jan 27, 2003, at 12:18 Europe/Amsterdam, Stefan Johansson
wrote:
> 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".
NSStrings are 'toll-free' brigded to CFStrings, that means you can use
pointer-casts to translate between the two.
Ronald
DATE : Mon Jan 27 03:38:01 2003
On Monday, Jan 27, 2003, at 12:18 Europe/Amsterdam, Stefan Johansson
wrote:
> 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".
NSStrings are 'toll-free' brigded to CFStrings, that means you can use
pointer-casts to translate between the two.
Ronald
| Related mails | Author | Date |
|---|---|---|
| Stefan Johansson | Jan 27, 03:19 | |
| Ronald Oussoren | Jan 27, 03:38 |






Cocoa mail archive

