• 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
Re: FSCopyObjectAsync hogging the thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >FSCopyObjectAsync hogging the thread? (From: Kevin Boyce <email@hidden>)
 >Re: FSCopyObjectAsync hogging the thread? (From: Graham Cox <email@hidden>)
 >Re: FSCopyObjectAsync hogging the thread? (From: Graham Cox <email@hidden>)
 >Re: FSCopyObjectAsync hogging the thread? (From: Kevin Boyce <email@hidden>)

  • Prev by Date: Re: Erasing drawn content
  • Next by Date: KVO oddity (or am I *really* idiot ?)
  • Previous by thread: Re: FSCopyObjectAsync hogging the thread?
  • Next by thread: Re: FSCopyObjectAsync hogging the thread?
  • Index(es):
    • Date
    • Thread