Re: FSCopyObjectAsync hogging the thread?
Re: FSCopyObjectAsync hogging the thread?
- Subject: Re: FSCopyObjectAsync hogging the thread?
- From: Graham Cox <email@hidden>
- Date: Wed, 9 Jun 2010 22:42:32 +1000
On 09/06/2010, at 10:31 PM, Kevin Boyce wrote:
> 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.
It depends how finely you want the progress to be updated. If you can accept a call once per file copied, the delegate method -fileManager:shouldCopyItemAtPath:toPath: (or its modern URL equivalent) can be used (and by returning NO you can cancel the copy). I'd agree that a better delegate callback for the express purpose of maintaining a progress UI in a finer-grained manner would be nice though.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden