Re: FSCopyObjectAsync hogging the thread?

2010-06-10 Thread Kevin Boyce
Greg Guerin wrote: Kevin Boyce wrote: Sure, it seems like it's just another dispatch from the runloop. Which would be fine if it copied like 100K bytes per invocation, or something like that. It seems instead to run off and copy vast quantities of data before returning. Copying

Re: FSCopyObjectAsync hogging the thread?

2010-06-10 Thread Kevin Boyce
Thanks, Graham. I don't want to use NSFileManager because (AFAICT) you can't ask it how far along it's gotten. Also I don't see a way to cancel a copy in the middle. I'm not familiar with these ops, but having browsed the docs just now, it seems to me what's happening is that because you'

FSCopyObjectAsync hogging the thread?

2010-06-08 Thread Kevin Boyce
I'm using FSCopyObjectAsync to copy files while displaying a progress bar, and it seems less asynchronous than I would have thought. I'm scheduling it in the main run loop, from the main thread. The copy works correctly, and both the callbacks and the status calls work to get the current