NSURLDownload would be the one.

Or you can just use +[NSData dataWithContentsOfURL:].


I'd recommend the previous suggestions. NSURLDownload is non- blocking and uses callbacks to notify you when the download is complete (not to mention specific errors and progress). It also downloads the file to a temporary folder as opposed to loading the whole thing in memory.

Even if the file is very small, there's no guarantee transmission won't be interrupted (or will be available at all), which takes time to time out, etc., blocking all the while.

--
I.S.



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to