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

Re: Terminate File Copy


  • Subject: Re: Terminate File Copy
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 28 Jun 2006 12:16:27 -0400
  • Organization: Rogue Research

On 2006-06-28 20:19, Aalok said:

>In my application, I transfer files from mac to windows(smb). I
>dispatch a separate thread to the transfer and my UI runs on the main
>thread.
>
>I have a Cancel functionality in the application. Now when a file is
>under transfer
>(using [fileManager copyPath:filePath toPath:destination handler:nil])
>and I press cancel(I set a flag for that), the actual file transfer
>doesn't stop for that file. The thread terminates after that file
>transfer is complete. And it doesn't transfer anymore files.
>
>I want the functionality which, on Cancel, terminates ongoing file
>transfer also.
>
>Is it possible? If there is some other approach to do that please advice.

I suggest you abandon NSFileManager and look at using the Carbon/
CoreServices File Manager.  Take a look in Files.h.  FSCopyObjectAsync()
looks like what you want.  You might also look at the MoreFilesX sample code.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

References: 
 >Terminate File Copy (From: Aalok <email@hidden>)

  • Prev by Date: Re: Terminate File Copy
  • Next by Date: Re: Login Item
  • Previous by thread: Re: Terminate File Copy
  • Next by thread: Re: Terminate File Copy
  • Index(es):
    • Date
    • Thread