• 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: CFURL: A Block Too Far
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CFURL: A Block Too Far
      • From: Andy O'Meara <email@hidden>
References: 
 >CFURL: A Block Too Far (From: Andy O'Meara <email@hidden>)

  • Prev by Date: CFURL: A Block Too Far
  • Next by Date: Re: CFURL: A Block Too Far
  • Previous by thread: CFURL: A Block Too Far
  • Next by thread: Re: CFURL: A Block Too Far
  • Index(es):
    • Date
    • Thread