title: Multiple NSURLConnection delegates in Objective-C
body: <p>I have two NSURLConnections. The second one depends on the content of the first, so handling the data received from the connection will be different for the two connections. </p>
  
  <p>I'm just picking up Objective-C and I would like to know what the proper way to implement the delegates is.</p>
  
  <p>Right now I'm using: </p>
  
  <pre><code>NSURL *url=[NSURL URLWithString:feedURL];
  NSURLRequest *urlR=[[[NSURLRequest alloc] initWithURL:url] autorelease];
  NSURLConnection *conn=[[NSURLConnection alloc] initWithRequest:urlR delegate:self];
  </code></pre>
  
  <p>I don't want to use self as the delegate, how do I define two connections with different delegates?</p>
  
  <pre><code>NSURLConnection *c1 = [[NSURLConnection alloc] initWithRequest:url delegate:handle1];
  NSURLConnection *c2 = [[NSURLConnection alloc] initWithRequest:url delegate:handle2];
  </code></pre>
  
  <p>How would do i create handle1 and handle2 as implementations? Or interfaces? I don't really get how you would do this. </p>
  
  <p>Any help would be awesome.</p>
  
  <p>Thanks,
  Brian Gianforcaro</p>