error handling with NSURLConnection sendSynchronousRequest

Posted by Nnp on Stack Overflow See other posts from Stack Overflow or by Nnp
Published on 2010-01-15T02:21:41Z Indexed on 2010/03/24 20:33 UTC
Read the original article Hit count: 607

how can i do better error handling with NSURLConnection sendSynchronousRequest? is there any way i can implement

- (void)connection:(NSURLConnection *)aConn didFailWithError:(NSError *)error

i have a nsoperation queue which is getting data in background thats why i have sync request. and if i have to implement async request then how can i wait for request to get complete. because that method can't proceed without data.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsurlconnection