Map boot queue from Core Data to UITableView

I want to download a certain amount of data from a server based on a Core Data database containing links to content.

Then I want to have a table view that will dynamically display the loaded content one by one in the queue list. This will be similar to what you see in the iTunes app on the iPhone, where you have a table of songs or podcasts downloaded by the progress bar.

I checked a lot of NSOperationQueue tutorials, like this or this , and I also decided not to use the ASIHTTPRequest framework , because it is deprecated.

How to accurately wrap the NSOperationQueue of elements loaded into a UITableview with URLs taken from the Core Data database, including indicators of the activity of the load run and the removal of the element from the table view after it is fully loaded?

Thanks in advance!

+4
source share
1 answer

During my research on this topic, I ended up writing my own custom class for the download queue. NSOperationQueue , in my opinion, has several disadvantages associated with managing NSOperations - for example, you cannot move them up or down - just change your priorities from high to low.

I also refused to use the ASIHTTPRequest framework because, as I said earlier, it is deprecated.

I based my class on NSMutableArray for storing queue elements and NSMutableDictionary for storing some values ​​for them.

+1
source

All Articles