Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFPropertyList and NSDictionary/CFDictionary



[re-sent, also posted to cocoa-dev list]

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
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.