• 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: Cocoa File Copy on MacOS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa File Copy on MacOS X


  • Subject: Re: Cocoa File Copy on MacOS X
  • From: Charles Srstka <email@hidden>
  • Date: Mon, 8 Apr 2002 12:38:14 -0500

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.

And break your app for a lot of people that don't have the Developer Tools installed. Instead, the only way you should copy files is:

[[ NSFileManager defaultManager ] copyPath: src toPath: dest handler: nil]
_______________________________________________
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.

  • Follow-Ups:
    • Re: Cocoa File Copy on MacOS X
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: Icon for prefPane bundle?
  • Next by Date: Re: Question about System Services
  • Previous by thread: Re: Cocoa File Copy on MacOS X
  • Next by thread: Re: Cocoa File Copy on MacOS X
  • Index(es):
    • Date
    • Thread