Re: NSURLConnection's +sendAsynchronousRequest and threads
Re: NSURLConnection's +sendAsynchronousRequest and threads
- Subject: Re: NSURLConnection's +sendAsynchronousRequest and threads
- From: Steve Sisak <email@hidden>
- Date: Wed, 14 Dec 2011 20:32:49 -0500
At 3:22 PM -0800 12/14/11, Jens Alfke wrote:
So how do I get around this? I figured I could at least write an
intermediate block to bounce back to the original thread, but was
surprised to see that there's no way to dispatch a block to a
specific thread (as far as I can see.) The closest thing is
performSelectorOnThread:, but that has the old-style approach of
taking a receiver/selector/argument. Isn't there a way to do this
with blocks yet?
Check out Quinn's
QRunLoopOperation/QWatchedOperationQueue/QHTTPOperation utility code
in:
<http://developer.apple.com/library/mac/#samplecode/LinkedImageFetcher/>
I've been doing some very heavy lifting with this code and it works well.
I have some additions for supporting multipart MIME which I'd be glad
to share if you need to handle multiple responses per request.
HTH,
-Steve
_______________________________________________
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