• 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: "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


  • Follow-Ups:
    • Re: FSCopyObjectAsync: useless and crippled
      • From: Stéphane Sudre <email@hidden>
    • Re: FSCopyObjectAsync: useless and crippled
      • From: Ondra Cada <email@hidden>
References: 
 >Re: FSCopyObjectAsync: useless and crippled (From: Stéphane Sudre <email@hidden>)

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