• 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: File Copy With Progress?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: File Copy With Progress?
      • From: Andy Lee <email@hidden>
References: 
 >File Copy With Progress? (From: Todd Freese <email@hidden>)
 >Re: File Copy With Progress? (From: Leo <email@hidden>)
 >Re: File Copy With Progress? (From: Jens Alfke <email@hidden>)
 >Re: File Copy With Progress? (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Properly wrapping non-contiguous NSTextViews
  • Next by Date: Re: File Copy With Progress?
  • Previous by thread: Re: File Copy With Progress?
  • Next by thread: Re: File Copy With Progress?
  • Index(es):
    • Date
    • Thread