CFPropertyList and NSDictionary/CFDictionary
CFPropertyList and NSDictionary/CFDictionary
- Subject: CFPropertyList and NSDictionary/CFDictionary
- From: Christopher Corbell <email@hidden>
- Date: Fri, 28 Nov 2003 11:21:47 -0800
I'm looking at the CFPropertyList API for the first time because it's
used in another library I'm using (AudioUnits).
I'm used to using NSDictionary in Cocoa, which can read and write
property-list XML files. I've also used the toll-free CFDictionary
equivalent
in Carbon-Cocoa projects, casting the CFDictionary to NSDictionary to
expose the file/url methods.
Is there any toll-free way to get from a CFPropertyListRef to an
NSDictionary
(or CFDictionary) and back? I think I can probably use intermediate
NSData/CFDataRef to pass the raw XML data to and from a CFPropertyList
and
a corresponding NSData object, but this seems inelegant to me - it's
a non-toll-free bridge between two redundant implementations of roughly
the same functionality. It seems like everything that CFPropertyList
does
could have been added as a small extension to NSDictionary /
CFDictionary.
Any thoughts? TIA.
- Christopher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.