ok, nothing special here, no errors, and I do declare NSMutableData *receivedData;
but I'm returning <> when I expect a web page returned; what's going on?
- (void)viewDidLoad {
[super viewDidLoad];
NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
if (theConnection) {
receivedData = [[NSMutableData data] retain];
NSLog(@"receivedData %@", receivedData);
} else {
// inform the user that the download could not be made
}
}