• 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: File Copy With Progress?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Copy With Progress?


  • Subject: Re: File Copy With Progress?
  • From: Andy Lee <email@hidden>
  • Date: Sun, 14 Aug 2011 12:57:27 -0400

On Aug 14, 2011, at 11:22 AM, Leo wrote:
> Well there's also another convoluted way - but I think it will copy all the attributes: calling 'ditto' with NSTask and reading its progress in the background (actually it's quite easy because there's an example somewhere on Apple's site how to do read NSTask's output in the background where all the coding is mostly done).

Apple's Moriarity sample code is hopelessly outdated. It uses a pbproj project file, which you won't be able to open in Xcode 3 or 4.

FWIW, I just updated my cleaned-up version of Moriarity, called MoreArty:

<https://github.com/aglee/MoreArty#readme>

It's very lightweight and doesn't do much but for wrapping a call to ditto you don't need much. All you need is TaskWrapper.[hm] and TaskWrapperDelegate.h. Of course you're welcome to download the whole project to see it in action.

There are also more sophisticated NSTask wrappers if you look around.

--Andy

_______________________________________________

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: 
 >File Copy With Progress? (From: Todd Freese <email@hidden>)
 >Re: File Copy With Progress? (From: Leo <email@hidden>)
 >Re: File Copy With Progress? (From: Jens Alfke <email@hidden>)
 >Re: File Copy With Progress? (From: Charles Srstka <email@hidden>)
 >Re: File Copy With Progress? (From: Leo <email@hidden>)

  • Prev by Date: Re: File Copy With Progress?
  • Next by Date: Re: Cocoa-dev Digest, Vol 8, Issue 619
  • Previous by thread: Re: File Copy With Progress?
  • Next by thread: Application crashes after launching Open/Save dialogs
  • Index(es):
    • Date
    • Thread