Anyone want to explain NSURLConnection use here?


#1

in the section where we write an NSData object to a file, I understood everything except:

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

I get that we are creating an NSData type pointer named data. Why do we use NSURLConnection and the rest of it?