title: ASynchronous NSURLConnection inside NSOperation with NSInvocation?
body: <p>I have to use Asynchrnous NSURLConnection inside NSOPeration  in background mode,because its  response is having large  dataI have to avoid  Apple's finite length coding to use in didEnterBackground.instead of it I use following code through NSOperation with NSInvocation as, but it is not working.connectToServer is having NSURLConnection operation.any help please?didReceiveData,didReceiveResponse delegate methods are not called?</p>
  
  <pre><code> -(void)viewDidLoad
   {
   NSOperationQueue *queue = [NSOperationQueue new];
  
  NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self
                                                                          selector:@selector(connectServer)
                                                                            object:nil];
  
  [queue addOperation:operation];
  [operation release];
  [queue autorelease];
  </code></pre>
  
  <p>}</p>
  
  <pre><code> -(void)connectServer
  {
  
  
  NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
  NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
  NSURLConnection *theConnection = [[[NSURLConnection alloc] initWithRequest:theRequest delegate:self] autorelease];
  
      if( theConnection )
      {
          webData = [[NSMutableData data] retain];
      }
      else
      {
          NSLog(@"theConnection is NULL");
      }
  }
  </code></pre>
  
  <p>}</p>