Re: CFURL: A Block Too Far
Re: CFURL: A Block Too Far
- Subject: Re: CFURL: A Block Too Far
- From: Mark Pauley <email@hidden>
- Date: Fri, 6 Aug 2010 10:44:19 -0700
On Aug 6, 2010, at 10:37 AM, Andy O'Meara wrote:
> CFURLCreateDataAndPropertiesFromResource
That's a bad idea. We recommend that you use NSURLConnection or CFHTTPReadStream to download data in this fashion. The createDataAndPropertiesFromResource API doesn't provide for a timeout, and is synchronous (so your runloop timers won't fire and you can't cancel). I would recommend that you use NSURLConnection in asynchronous mode if possible (running your own runloop if necessary). The NSURLRequest objects you give to NSURLConnection take a timeout as an initialization param.
_______________________________________________
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