Re: New class for synchronous URL loading?
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