As Calle said, best of all is a class that processes the connection, parses the response, and returns data in a pretty delegate function.
, - 2 NSURLConnections , ivars. - NSURLConnection * pushNotificationConnection; NSURLConnection * someOtherConnection;
didReceiveData :
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
if (connection == pushNotificationConnection)
{
}
else if (connection == someOtherConnection)
{
}
}