Hi
I want to get an NSData object's contents from a URL. What is the more efficient way of doing this in terms of memory usage dataWithContentsOfURL (or initWithContentsOfURL) or using NSURLConnection?
Should I use
NSData *data = [[NSData alloc] initWithContentsOfURL:myURL]
or
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];