• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Asynchronous downloading again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Asynchronous downloading again (From: Alex Kac <email@hidden>)

  • Prev by Date: Re: "Could not merge data"-error on save in a single moc app
  • Next by Date: Re: NSInvocation and methods with non-pointer parameters
  • Previous by thread: Re: Asynchronous downloading again
  • Next by thread: Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)
  • Index(es):
    • Date
    • Thread