• 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: New class for synchronous URL loading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New class for synchronous URL loading?


  • Subject: Re: New class for synchronous URL loading?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 10 Jul 2008 16:05:18 -0700


On 2008 Jul, 06, at 20:36, Jens Alfke wrote:


On 6 Jul '08, at 8:07 PM, Jerry Krinock wrote:

I built my own class a couple years ago for loading URLs synchronously. The interface is one class method. Basically, you give it a URL and some stuff, and it goes off and either times out or returns data. Synopsis:
I thought I'd read somewhere that Apple had introduced a new class in Leopard which did something like this, but now I can't find it. Was I dreaming?

I think you mean +[NSURLConnection sendSynchronousRequest:...], but that's been around since 10.3 or so. Sounds just like your utility, though.

Finally figured this out. I had written my own class to do synchronous HTTP requests because the timeout: setting in NSURLRequest was broken. It would not go less than 30 seconds. However, the other day I retested and found that although it is indeed broken in Tiger, it is fixed in Leopard.


So, I remembered the right thing, but for the wrong reason, or maybe I dreamed the wrong thing for the right reason. But anyhow, I can 'delete' my stupid synchronous URL connector class now.

Jerry

Gory details, for anyone still supporting Tiger...

http://www.cocoabuilder.com/archive/message/cocoa/2008/7/9/212378
_______________________________________________
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: New class for synchronous URL loading?
      • From: Mark Pauley <email@hidden>
References: 
 >New class for synchronous URL loading? (From: Jerry Krinock <email@hidden>)
 >Re: New class for synchronous URL loading? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: local IP adresses / local host names
  • Next by Date: POST NSURLRequest, send Response to Web Browser
  • Previous by thread: Re: New class for synchronous URL loading?
  • Next by thread: Re: New class for synchronous URL loading?
  • Index(es):
    • Date
    • Thread