On Apr 16, 2010, at 7:34 AM, nimblehost wrote:

> I've posted a brief tutorial on how to add the CoreFoundation version of AP 
> to a Cocoa application. 
> 
> http://code.nimblehost.com/
> 
> The biggest stumbling block for me was figuring out how to convert certain NS 
> objects to CoreFoundation (NSString to CFURLRef, for example), so I've 
> included an example of this, as well as how to create a CF dictionary of 
> license data and convert it to an NSDictionary.

No "conversion" of CFDictionaryRef is necessary; that and NSDictionary are 
"toll-free bridged", meaning they are 100% equivalent.  Just make a cast to 
quiet the compiler.  There are many such toll-free bridged pairs:

<http://developer.apple.com/legacy/mac/library/documentation/Cocoa/Conceptual/CarbonCocoaDoc/Articles/interchangeableDataTypes.html>

Reply via email to