asynchronous nsurlconnection in nsoperation
asynchronous nsurlconnection in nsoperation
- Subject: asynchronous nsurlconnection in nsoperation
- From: Ariel Feinerman <email@hidden>
- Date: Wed, 21 Mar 2012 18:59:19 +0300
Hi,
I wish to insert an asynchronous NSURLConnection into non-concurrent
NSOperation
the reason is to allow necessarily unarchive actions on the streaming date
so
- (void) connection: (NSURLConnection *) connection didReceiveData:
(NSData*) data {
// Append the new data to receivedData.
[_receivedData appendData: data];
if ([_receivedData length] >= MAX_CHUNK) {
// unarchive
// write to file
// [receivedData setLength: 0];
}
}
Is there a correct way to do ?
--
best regards
Ariel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden