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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to