Re: Is it possible to make dictionaryWithContentsOfURL non-blocking?
Re: Is it possible to make dictionaryWithContentsOfURL non-blocking?
- Subject: Re: Is it possible to make dictionaryWithContentsOfURL non-blocking?
- From: Adam Holt <email@hidden>
- Date: Mon, 04 Jul 2005 13:49:44 +0100
Thanks Scott and Lee for the pointers.
Have just been playing with this. Was being lazy and wanted to avoid
changing the structure of my code too much, so thought I'd try the
synchronous mode for NSURLConnection ( sendSynchronousRequest ).
Unfortunately it seems like the timeoutInterval defined in my NSURLRequest
has no effect in this mode (which is strange as the Apple docs suggest it
does).
So it looks like I'll have to implement the callbacks and do this properly
in an asynchronous way to avoid that problem.
Cheers...
Adam.
On 4/7/05 10:16 am, "Scott Anguish" <email@hidden> wrote:
>
> On Jul 4, 2005, at 4:18 AM, Lee Morgan wrote:
>
>> The easiest way is to create a NSURL instance and use NSURL's
>> loadResourceDataNotifyingClient:usingCache:
>> Then in URLResourceDidFinishLoading: create your dictionary with
>> the NSURL (sender).
>
> It'd be much better to use NSURLConnection or NSURLDownload
> instead.. you get much more information back
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden