Objective-C : Trouble with file download
Posted
by Holli
on Stack Overflow
See other posts from Stack Overflow
or by Holli
Published on 2010-06-08T05:28:23Z
Indexed on
2010/06/08
5:32 UTC
Read the original article
Hit count: 438
I ran in a bit of trouble downloading files with Objective-C.
I use the download decideDestinationWithSuggestedFilename from Apples documentation page.
As long as I want to download just one file it works fine but I want to download an array for files one by one. The problem starts with the second file.
Right now my code will trigger the next download itself from the downloadDidFinish Method. Then I will get an unrecognized selector sent to instance error. For me it looks like the NSURLDownload that just finished the download is still in use somehow. Release is called but the must be a problem.
If I just put an NSBeep in the downloadDidFinished Method and trigger the next file download manually it works fine. Looks like I have to wait a while till I can start the next download.
I know this question is a bit vague but maybe someone got an idea.
© Stack Overflow or respective owner