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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to