• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CFPropertyList and NSDictionary/CFDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Query regarding DateFormat
  • Next by Date: Re: NSControllers and App Design
  • Previous by thread: Re: Query regarding DateFormat
  • Next by thread: NSSortDescriptor issue
  • Index(es):
    • Date
    • Thread