Re: Is my computer connected to the web?
Re: Is my computer connected to the web?
- Subject: Re: Is my computer connected to the web?
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 17 Jan 2004 21:49:22 +0000
On 17 Jan 2004, at 19:54, Lorenzo wrote:
I use only "stringWithContentsOfURL:" and when I am not connected or
that
file doesn't exist, I have to wait so long to get the response. Do you
think
there is a Cocoa short way to detect that I am not connected?
You can detect whether or not you are connected to the internet using
the SCNetwork[Check]Reachability API in SystemConfiguration.framework.
-- Finlay
_______________________________________________
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.