Re: FSCopyObjectAsync: useless and crippled
Re: FSCopyObjectAsync: useless and crippled
- Subject: Re: FSCopyObjectAsync: useless and crippled
- From: "Mark Munz (DevList)" <email@hidden>
- Date: Sun, 15 May 2005 14:24:55 -0500
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.
It's also overkill for what I think are the more common case:
I want to copy file X into the /Library/ folder, getting permission
from the user if needed (just as would be the case if you were to
drag a file from your folder into /Library/.
I think it is great that this exists for those that need to do
complicated file copying tasks (with preflighting and such), but it
is more Carbon friendly than Cocoa-friendly and makes a simple copy
complicated and it don't believe it addresses the authentication
issue at all.
Mark Munz
_______________________________________________
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