Mailing Lists: Apple Mailing Lists

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

Re: Nth string from list



If it is small enough and you can load the entire thing into a CFString, there is always CFStringCreateArrayBySeparatingStrings and just pass the separator as the line ending of the file.

Ack, at 3/31/05, Trygve Inda said:

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?

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
_______________________________________________
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

This email sent to email@hidden
References: 
 >Nth string from list (From: Trygve Inda <email@hidden>)



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.