• 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
NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLConnection


  • Subject: NSURLConnection
  • From: R <email@hidden>
  • Date: Sun, 26 Jun 2011 09:37:30 -0700 (PDT)

Any opinions on which approach is better.....


NSData *data = [NSURLConnection sendSynchronousRequest:request
										 returningResponse:&response
													 error:&error];

OR

connectionInProgress=[[NSURLConnection alloc]initWithRequest:request
 														delegate:self
 												startImmediately:YES];
}


- (void)connection:(NSURLConnection *)connection didReceiveData:
(NSData *)data{
}

- (void)connection:(NSURLConnection *)connection didFailWithError:
(NSError *)error{
}

- (void)connectionDidFinishLoading:(NSURLConnection *)connection{
}
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSURLConnection
      • From: "Gary L. Wade" <email@hidden>
    • Re: NSURLConnection
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Re-using the same NIB on two owners
  • Next by Date: Re: NSURLConnection
  • Previous by thread: Re: Re-using the same NIB on two owners
  • Next by thread: Re: NSURLConnection
  • Index(es):
    • Date
    • Thread