• 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: NSURLRequest and NSOperationQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLRequest and NSOperationQueue


  • Subject: Re: NSURLRequest and NSOperationQueue
  • From: Keith Duncan <email@hidden>
  • Date: Mon, 18 Jan 2010 17:05:55 +0000

On 18 Jan 2010, at 16:37, Clint Shryock wrote:

> I had the same issue in the past using NSOperationQueue and NSURLConnection,
> and I resolved it by simply telling NSURLConnection to send using
> synchronously using sendSynchronousRequest:returningResponse:error:
>
> Would that not take care of the issue?

That is no different to servicing the run loop for an 'asynchronous' operation and is generally a bad idea in the worker threads; it needlessly removes them from the worker pool until the response has arrived.

Please see my previous post for alternatives.

Keith

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSURLRequest and NSOperationQueue (From: "J. Scott Tury" <email@hidden>)
 >Re: NSURLRequest and NSOperationQueue (From: Keith Duncan <email@hidden>)
 >Re: NSURLRequest and NSOperationQueue (From: "J. Scott Tury" <email@hidden>)
 >Re: NSURLRequest and NSOperationQueue (From: Clint Shryock <email@hidden>)

  • Prev by Date: Re: Bindings Problem
  • Next by Date: Re: CALayer with No Animation
  • Previous by thread: Re: NSURLRequest and NSOperationQueue
  • Next by thread: Re: NSDatePicker 24 hour clock (Daniel Wambold)
  • Index(es):
    • Date
    • Thread