Re: File Copy With Progress?
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