On 8/14/11 3:37:07 AM, Charles Srstka wrote:
On Aug 14, 2011, at 1:41 AM, Jens Alfke wrote:

On Aug 13, 2011, at 12:27 PM, Leo wrote:
You can also use libcurl which supports the 'file' protocol along with ftp, 
http, etc. It's also not Cocoa, but easy to use and there's also its Cocoa 
wrapper CURLHandle (I'm not sure if they updated it to Intel eventually):

http://code.google.com/p/curlhandle/
Seems like using a grenade to swat a fly, compared to just calling 
open/read/write/close.
Not to mention that neither method will properly copy extended attributes.

Charles

Well there's also another convoluted way - but I think it will copy all the attributes: calling 'ditto' with NSTask and reading its progress in the background (actually it's quite easy because there's an example somewhere on Apple's site how to do read NSTask's output in the background where all the coding is mostly done).

Leo

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to