Re: Cocoa File Copy on MacOS X
Re: Cocoa File Copy on MacOS X
- Subject: Re: Cocoa File Copy on MacOS X
- From: Andrew Mortensen <email@hidden>
- Date: Mon, 8 Apr 2002 10:35:35 -0400 (EDT)
On Mon, 8 Apr 2002, Jay Vaughan wrote:
>
What's wrong with exec()'ing "/bin/cp" with appropriate args? :)
>
Loss of metadata. Use /Developer/Tools/CpMac instead.
>
Or if you don't like exec(), use the Cocoa equivalent for
>
task-execution, I'm not up on the API enough yet to know it off the
>
top of my head ...
[[ NSFileManager defaultManager ] copyPath: src toPath: dest handler: nil
]
andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.