Re: Re: Checking for an internet connection
Re: Re: Checking for an internet connection
- Subject: Re: Re: Checking for an internet connection
- From: "Bobby B" <email@hidden>
- Date: Thu, 7 Sep 2006 22:23:56 -0400
Hello,
I found I could use this:
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL
URLWithString:@"http://www.google.com/"]
cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:3.0];
NSURLConnection *theConnection=[[NSURLConnection alloc]
initWithRequest:theRequest delegate:self];
And implement it's delegate methods, mainly -
(void)connection:(NSURLConnection *)connection
didFailWithError:(NSError *)error ..
And it works great!
Bobby
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden