• 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: NSURLConnection's +sendAsynchronousRequest and threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSURLConnection's +sendAsynchronousRequest and threads (From: Jens Alfke <email@hidden>)

  • Prev by Date: NSURLConnection's +sendAsynchronousRequest and threads
  • Next by Date: Re: NSURLConnection's +sendAsynchronousRequest and threads
  • Previous by thread: NSURLConnection's +sendAsynchronousRequest and threads
  • Next by thread: Re: NSURLConnection's +sendAsynchronousRequest and threads
  • Index(es):
    • Date
    • Thread