• 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: FSCopyObjectAsync: useless and crippled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSCopyObjectAsync: useless and crippled


  • Subject: Re: FSCopyObjectAsync: useless and crippled
  • From: Stéphane Sudre <email@hidden>
  • Date: Sun, 15 May 2005 21:44:48 +0200


dimanche 15 mai 2005, à 09:24 PM, Mark Munz (DevList) a écrit :


On May 15, 2005, at 9:39 AM, Stéphane Sudre wrote:


dimanche 15 mai 2005, à 12:56 PM, John C. Daub a écrit :


<http://developer.apple.com/samplecode/FSCopyObject/ FSCopyObject.html>

Does this not suffice?


This sample code is one of the hidden gems available on the ADC web site.


For one very good reason: where NSFileManager fails, this code works.

One of the problems that I have with his is obvious when you go to the web page. You'll see that it was updated 3-19-2004 to fix a bug. If you were using it before then, you won't see the fix unless you incorporated into your code. A system API would allow Apple to fix the bug and have it applied to all applications. It is one of the pitfalls of the "sample code solution" approach.

I do agree that this sample code can have some bugs (IIRC, I fixed one when I integrated it into my project) and is very complex when you think it's just copying a file or folder.


Yet my experience with it has been more rewarding than with the NSFileManager API.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: FSCopyObjectAsync: useless and crippled (From: "Mark Munz (DevList)" <email@hidden>)

  • Prev by Date: Re: Where is X11 on Tiger ?
  • Next by Date: Re: Where is X11 on Tiger ?
  • Previous by thread: Re: FSCopyObjectAsync: useless and crippled
  • Next by thread: Re: FSCopyObjectAsync: useless and crippled
  • Index(es):
    • Date
    • Thread