Created
May 19, 2011 15:59
-
-
Save Adam0101/981105 to your computer and use it in GitHub Desktop.
asynch receiver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gather up all the asynch data as it comes in and store it in the blob | |
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { | |
// Check to see if this is a new search, if so it will be nil, so create an object | |
if(tweetBlob == nil) { | |
tweetBlob = [[NSMutableData alloc]init]; | |
[tweetBlob appendData:data]; | |
} | |
else { | |
[tweetBlob appendData:data]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment