Re: File Copy With Progress?
Re: File Copy With Progress?
- Subject: Re: File Copy With Progress?
- From: Leo <email@hidden>
- Date: Sun, 14 Aug 2011 11:22:07 -0400
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 (email@hidden)
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:
This email sent to email@hidden