Anyone want to explain NSURLConnection use here?


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

NSData *data = [NSURLConnection sendSynchronousRequest: request
returningResponse: NULL

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