Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void) main
- {
- NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
- // initialize request
- NSURLConnection* theConnection = [ NSURLConnection connectionWithRequest: request delegate: self];
- [theConnection start];
- while(!finished) {
- [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
- }
- if(self.success) {
- // process the data
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement