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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to