• 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
What's the best way to run an NSURLProtocol session?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's the best way to run an NSURLProtocol session?


  • Subject: What's the best way to run an NSURLProtocol session?
  • From: Daryle Walker <email@hidden>
  • Date: Thu, 16 Oct 2014 18:48:53 -0400

The SimplePictureProtocol example does all its work within -startLoading. The CustomHTTPProtocol example does its work with the NSURLSession family of APIs, which I think use NSOperation and NSOperationQueue internally. What multi-tasking methods are OK to use for non-simple tasks that won’t recursively call the NSURL* APIs? The second example mentions that -startLoading and -stopLoading are called in a custom thread, but I’ve heard that higher-up APIs are better if possible, like preferring NSOperation over NSThread. And doesn’t the NSStream stuff use callbacks?

— 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com 

 _______________________________________________
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: What's the best way to run an NSURLProtocol session?
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: TLS protocol levels, POODLE, and TN2287
  • Next by Date: PeerToPeer Replications using bonjour not working with IPV6 addresses
  • Previous by thread: Re: TLS protocol levels, POODLE, and TN2287
  • Next by thread: Re: What's the best way to run an NSURLProtocol session?
  • Index(es):
    • Date
    • Thread