Multiple NSURLDownloads with Progress

Posted by David Schiefer on Stack Overflow See other posts from Stack Overflow or by David Schiefer
Published on 2010-06-10T10:08:06Z Indexed on 2010/06/10 10:13 UTC
Read the original article Hit count: 342

Filed under:
|
|

Hello,

I'm trying to build a small app which allows downloading of multiple files at the same time while displaying them in a custom NSTableView. This works, i've done this by using an NSEnumerator, but I struggle at getting the progress right. It's calculated correctly, but it's not done individually for every download, instead they're added up.

The way I've tried to set the subtitles containing the progress is by loading them into a separate array and then inserting/replacing objects containing the progress, but here I run into another problem - I don't know how to get the index of the object that's being downloaded, so I can't differentiate between the progresses.

I hope you understand what I mean :P

I've uploaded the source code to my server, I'd be really grateful if someone could have a look and help me out: http://web.me.com/david.schiefer/MyController.m

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about mac