Re: Cocoa File Copy on MacOS X
Re: Cocoa File Copy on MacOS X
- Subject: Re: Cocoa File Copy on MacOS X
- From: David Remahl <email@hidden>
- Date: Mon, 08 Apr 2002 19:52:02 +0200
>
On Monday, April 8, 2002, at 09:35 AM, Andrew Mortensen wrote:
>
>
> 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.
More importantly than metadata in this case, the resource fork...
>
And break your app for a lot of people that don't have the Developer
A seriosuly bad idea. Is CpMac part of Darwin btw?
>
Tools installed. Instead, the only way you should copy files is:
>
>
> [[ NSFileManager defaultManager ] copyPath: src toPath: dest handler:
>
> nil]
/ David Remahl
_______________________________________________
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.