I have a list of strings (URLs) in a text file (not unicode, but I
suppose I
could encode it that way if it mattered).
It will have as many as 100 or so strings and I need to grab the Nth
one and
convert it to a URLRef.
Is there any API that will do this (I haven't been able to find
one)... Or
should I roll my own?
The file will be downloaded from my website by my application so that
I can
keep it updated without having to update my app. I have considered
making it
a plist of sorts and having an array to be able to use CFArray. The
file was
planned to be stored in Application Support, but I think most he CF
utilities require the plist to be in Preferences.
Any suggestions as to the best way to do this?
If you have a plist (anywhere) you can use
CFPropertyListCreateFromStream to parse it/read it in. This function
reads in the data from a CFReadStreamRef, which could be a file, a
buffer somewhere in memory or even the result of
CFReadStreamCreateForHTTPRequest.
Fred
_______________________________________________
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