title: Deprecated NSURLConnection Methods, is there an alternative?
body: <p>I am setting up a NSURLConnection to access a remote server:</p>
  
  <pre><code>NSURL *url = [[NSURL alloc] initWithString:projectURL];
  NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:60];
  NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
  </code></pre>
  
  <p>Using the following delegate methods below:</p>
  
  <pre><code>- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
  
  - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
  
  - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
  
  - (void)connectionDidFinishLoading:(NSURLConnection *)connection
  
  - (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse
  </code></pre>
  
  <p>All of theses methods say "Available in iOS 2.0 through iOS 4.3." My question should I be doing this another way for the current iOS5? I need asynchronous transfer and need to pass a NSURLCredential for UID/PWD authentication.</p>
  
  <h1>EDIT:</h1>
  
  <p>So if I am adopting the protocol <code>&lt;NSURLConnectionDelegate&gt;</code> in my header and using the delegate methods above I am doing this the right way?</p>