On Nov 15, 2004, at 8:47 PM, Bryan Pietrzak wrote:
On Nov 15, 2004, at 5:25 PM, Steve Mills wrote:
I've read the docs and I just don't understand. How can I take a
.plist file, read and parse it, then iterate through each element?
A plist is not necessarily XML....it can be an old style plist fwiw.
It's worth noting that the CFPropertyList APIs pick up all three
formats of property lists - the old style curly-brace (NeXTstep)
flavor, XML plists, and binary format plists.
CFPropertyListCreateFromStream will tell you what format it found in
the by-reference "format" parameter allowing you to round trip the data
in the same format if you so choose.
CFPropertyListCreateFromXMLData is rather poorly named these days,
since it reads all the property list formats (There's a passing comment
to this effect in the CFPropertyList.h header).
.chris
--
Chris Parker
CoreFoundation
Apple Computer, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden