• 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: Is it possible to make dictionaryWithContentsOfURL non-blocking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Is it possible to make dictionaryWithContentsOfURL non-blocking? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Nib file not getting loaded
  • Next by Date: Why does app sometimes bounce in the Dock but never finish loading?
  • Previous by thread: Re: Is it possible to make dictionaryWithContentsOfURL non-blocking?
  • Next by thread: programmatically creating everything in a program?
  • Index(es):
    • Date
    • Thread