Re: Determining if a url exists
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