What's the best way to run an NSURLProtocol session?
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