It seems dead simply, because to create an NSURLConnection I usually do this:
NSURL *theURL = [NSURL URLWithString:urlString]; NSURLRequest *req = [NSURLRequest requestWithURL:theURL]; NSURLConnection *connection = [NSURLConnection connectionWithRequest:req delegate:self];
But how can I get the URL back in the delegate methods? Not enough for myself (I start several connections at once, so this gets a little dirty). It seems that I should return the URL from the connection.
Did I miss something?
source share