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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to