• 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: Determining if a url exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining if a url exists


  • Subject: Re: Determining if a url exists
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 7 Feb 2008 00:50:41 -0700


On Feb 7, 2008, at 12:17 AM, Matthew Delves wrote:
Have tried this, though it still produces the same results. Plus the code I'm running is inside a thread detached from the main thread and thus that function doesn't achieve the desired result.

NSURLCache does not appear to be documented as being thread-safe, so you might want to try clearing the cache in the main thread. You could also try using NSURLRequest with a cache policy that ignores the local cache.


Could you please expand on what you mean by "Not without actually doing it"? Do you mean not without retrieving the file?


There's no way of knowing in advance whether a URL will or will not work until you actually try loading it, save for file: URLs of course.

Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Determining if a url exists (From: Matthew Delves <email@hidden>)
 >Re: Determining if a url exists (From: Nick Zitzmann <email@hidden>)
 >Re: Determining if a url exists (From: Matthew Delves <email@hidden>)

  • Prev by Date: Re: Understanding objc_assign_strongCast
  • Next by Date: Re: Determining if a url exists
  • Previous by thread: Re: Determining if a url exists
  • Next by thread: Re: Determining if a url exists
  • Index(es):
    • Date
    • Thread