PDA

View Full Version : Asynchronous NSURLConnections + NSTableView Help




jwei92
Jul 10, 2012, 08:42 PM
Question 1 - I am currently writing a program that has a table view that is loaded with data from an on-disk property list. Each of these cells has a name associated with it, and a checkbox. The program's purpose is to have a 'Get' button, and when pressed, will go through the table, checking to see what cells are checked. For each one that is checked, it will grab it's URL (which is just the secondary cell) and download it. When the program opens, a table view is loaded with the data on that plist. (This plist is slated to have 300+ entries)

Example

x File 1
_ File 2
x File 3
When pressing 'Get', it will go download the file (Files 1 & 3) from somesite.com/File1.zip, somesite.com/File3.zip.

Currently, what I have written will just download the last file checked.

Question 2 - Once I can figure that out, I would like to know how to download all the files at the same time, rather than in succession, because that's what it looks like my program is doing right now.