Re: Downloading with NSData and NSFileManager
Re: Downloading with NSData and NSFileManager
- Subject: Re: Downloading with NSData and NSFileManager
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 6 Oct 2008 12:01:42 -0600
On Oct 6, 2008, at 11:04 AM, Mark Thomas wrote:
I was looking at downloading some files, and started to look at
NSFileManager to create the file, and then saw I could use NSData to
load
the data via a NSURL, so this look's pretty straight forward and
very small
code for downloading files.
So I'm wondering what is the downside of using this technique, as I
guess
maybe these API block ?
Correct. If you need non-blocking I/O, then use NSURLConnection and
NSURLRequest instead.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden