Writing multiple NSData to File

Posted by user326943 on Stack Overflow See other posts from Stack Overflow or by user326943
Published on 2010-04-27T14:29:53Z Indexed on 2010/04/27 14:33 UTC
Read the original article Hit count: 305

Filed under:
|

I need a hint on how to write multiple NSData chunks to single file. Downloading a file using NSURLConnection in chunks. Each chunk is downloaded in a separate NSOperation thread. As the chunks finish downloading they need to be written to a file so combined result is the file downloaded.

What would be the best way to manage the NSData that is returned and writing it to a single file?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa