Re: NSURLs and timeouts
Re: NSURLs and timeouts
- Subject: Re: NSURLs and timeouts
- From: j o a r <email@hidden>
- Date: Sat, 29 Nov 2003 12:14:38 +0100
On 2003-11-29, at 11.34, Sean Gilbertson wrote:
>
I have an application that checks for updates, and uses an NSURL to
>
do so. However, if the site the NSURL is looking for is down, the
>
application will freeze. I'm wondering if I can have the NSURL time
>
out (I didn't see anything in the NSURL reference for this), or,
>
failing that, if I can ask Cocoa if it can reach a specific host
>
(passing along a timeout value if necessary)? Thanks for any and all
>
help.
Look in the Foundation documentation again, it's full of NSURLxxx
classes that can be used to do what you're asking for. Take a look at
NSURLHandle if you're on Jaguar, or NSURLDownload if you're on Panther.
Look in the list archives if there's something you're still wondering
about, it's quite likely that the question has been asked and answered
before.
<
http://cocoa.mamasam.com/>
j o a r
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.