Re: Asynchronous downloading again
Re: Asynchronous downloading again
- Subject: Re: Asynchronous downloading again
- From: Alastair Houghton <email@hidden>
- Date: Mon, 2 Nov 2009 16:02:33 +0000
On 2 Nov 2009, at 15:05, Alex Kac wrote:
Would this be helpful?
http://www.cimgf.com/2008/02/16/cocoa-tutorial-nsoperation-and-nsoperationqueue/
It shows how to use NSOperationQueue, but it uses downloading HTML
pages as an example.
It isn't really a good example of downloading HTML pages (though it's
a perfectly sensible example of NSOperationQueue). NSURLConnection
*already* does everything you need, so there's no need to construct an
alternate method of doing async. downloading using NSOperationQueue,
which is what that blog entry does. Moreover, NSURLConnection gives
you a lot more control over the process, including the ability to
handle redirects and authentication, which you can't do with the
synchronous -initWithContentsOfURL: methods.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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