- (void) connection: (NSURLConnection *) connection didReceiveResponse: (NSURLResponse *) response; - (void) connection: (NSURLConnection *) connection didReceiveData: (NSData *) data; - (void) connection: (NSURLConnection *) connection didFailWithError: (NSError *) error; - (void) connectionDidFinishLoading: (NSURLConnection *) connection;
NSURL *url; NSData *data; NSString *blork; url = [NSURL URLWithString: @"http://borkware.com/hacks/random"]; data = [url resourceDataUsingCache: NO]; blork = [[NSString alloc] initWithData: data encoding: NSASCIIStringEncoding];
NSURL *url; NSData *data; NSImage *blork; url = [NSURL URLWithString: @"http://borkware.com/hacks/random-pic"]; data = [url resourceDataUsingCache: NO]; blork = [[NSImage alloc] initWithData: data];
NSURL *url = [NSURL URLWithString: @"http://cuteoverload.com/2006/09/12/xtreme_gluttony/"]; [[UIApplication sharedApplication] openURL: url];