• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Interrupt copyItemAtPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Interrupt copyItemAtPath
      • From: Ken Thomases <email@hidden>
    • Re: Interrupt copyItemAtPath
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Over-released NSMenuItem on using "Open Recent" via Help menu search
  • Next by Date: bouncing an NSScrollView like UIScrollView
  • Previous by thread: Temporarily disable button key equivalent
  • Next by thread: Re: Interrupt copyItemAtPath
  • Index(es):
    • Date
    • Thread