Re: CFURL: A Block Too Far
Re: CFURL: A Block Too Far
- Subject: Re: CFURL: A Block Too Far
- From: Andy O'Meara <email@hidden>
- Date: Fri, 6 Aug 2010 12:56:41 -0500
Perfect suggestions, guys! Thanks!!
On Aug 6, 2010, at 12:44 PM, Mark Pauley wrote:
> 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.
>
>
On Aug 6, 2010, at 12:46 PM, Jamie Wood wrote:
> Have you looked into using the SCNetworkReachability API to check if the server is reachable before you connect?
>
> Jamie
>
> Sent from my iPhone
_______________________________________________
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