Interrupt copyItemAtPath
Interrupt copyItemAtPath
- Subject: Interrupt copyItemAtPath
- From: "gMail.com" <email@hidden>
- Date: Sat, 06 Nov 2010 23:27:30 +0100
- Thread-topic: Interrupt copyItemAtPath
I copy a 14GB file with
- (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath
error:(NSError **)error
Since the copy could take several minutes, I would grant the user the
opportunity to interrupt the copy pressing a given button.
Is a way to tell copyItemAtPath to break the job and return?
Maybe something similar to a delegate method like shouldProceedAfterError,
but occurring at any chunk copied?
Or should I use the latest methods from FSCopyObject.c ?
A couple of years ago I used FSCopyObject.c to copy files (and I added the
way to break the copy at a given moment), but as I recall, that code (I
think from the year 2002) didn't copy metadata, the BSD flags, the ACL
attributes and ACL Extended attributes. Is an updated version of this code?
--
Leo
_______________________________________________
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