• 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: NSURLSessionTasks don't have their own delegates?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLSessionTasks don't have their own delegates?!


  • Subject: Re: NSURLSessionTasks don't have their own delegates?!
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 22 Jul 2014 10:54:41 -0700


On Jul 22, 2014, at 10:24 AM, Shawn Erickson <email@hidden> wrote:

I am not implying anything close to that number.

Well, you did say "sessions align more closely with connections of old”. And it’s not unusual to create large numbers of simultaneous NSURLConnections, like when downloading a bunch of resources in parallel the way a web browser does.

But you made a good point earlier about "leveraging the completion blocks per task instead of depending on delegate callbacks” — I hadn’t paid attention to those convenience methods. It looks like these would work well in the common case where you want to buffer up all the response data and then handle it at the end, probably doing away with the need to de-multiplex delegate calls. Unfortunately I’ve got a couple of tasks that need to stream the incoming data and parse it incrementally, which those won’t work for.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSURLSessionTasks don't have their own delegates?!
      • From: Shawn Erickson <email@hidden>
References: 
 >NSURLSessionTasks don't have their own delegates?! (From: Jens Alfke <email@hidden>)
 >Re: NSURLSessionTasks don't have their own delegates?! (From: Shawn Erickson <email@hidden>)
 >Re: NSURLSessionTasks don't have their own delegates?! (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: NSURLSessionTasks don't have their own delegates?! (From: Shawn Erickson <email@hidden>)
 >Re: NSURLSessionTasks don't have their own delegates?! (From: Jens Alfke <email@hidden>)
 >Re: NSURLSessionTasks don't have their own delegates?! (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: NSURLSessionTasks don't have their own delegates?!
  • Next by Date: Re: WiFi channel separation
  • Previous by thread: Re: NSURLSessionTasks don't have their own delegates?!
  • Next by thread: Re: NSURLSessionTasks don't have their own delegates?!
  • Index(es):
    • Date
    • Thread