• 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: Re: Checking for an internet connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Checking for an internet connection (From: "Bobby B" <email@hidden>)
 >Re: Checking for an internet connection (From: Murat Konar <email@hidden>)

  • Prev by Date: trouble with drag and drop, NSTableview, CoreData, Document-based app
  • Next by Date: Re: Observing Core Data
  • Previous by thread: Re: Checking for an internet connection
  • Next by thread: trouble with drag and drop, NSTableview, CoreData, Document-based app
  • Index(es):
    • Date
    • Thread