Having completed an Android version of my app, I was hoping that the Objective-C version for iOS would be similar. But looking at the DBRoulette example, there seems to be a ****** difference regarding threading. Is it correct that all the code shown in the four .m source files runs in the UI thread? This may be fine for transferring one file at a time, when the only thing the UI thread needs to do is respond when the background operation is done. But in my app, I need to transfer an entire folder, and recursively, any subfolders. In Android I did this in an Async Task, where my doInBackground method did all the heavy lifting, handling folder recursion, etc. The UI thread got periodic postings of progress through the onProgressUpdate method. And the UI thread could cause an early termination of the Async Task the usual way.
In the iOS version, I would like to use the same pattern, doing all the work in a worker thread. But I don't see how to implement that pattern using the functions shown in the DBRoulette example. Is there some other example that uses a worker thread to sequence through a tree of files and transfer them one at a time?