• 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
Copying files synchronously with Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying files synchronously with Cocoa?


  • Subject: Copying files synchronously with Cocoa?
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 16 Jan 2006 00:17:26 -0500

Hi all,

NSWorkspaces's performFileOperation:source:destination:files:tag: can be
used to copy files with the operation NSWorkspaceCopyOperation, the docs say:

"In tag, the method returns a negative integer if the operation fails, 0
if the operation is performed synchronously and succeeds, and a positive
integer if the operation is performed asynchronously. The positive
integer is a tag that identifies the requested file operation. Before
this method returns, it posts an NSWo
rkspaceDidPerformFileOperationNotification to NSWorkspace's notification
center."

Is it possible, using this or another Cocoa API, to copy synchronously?

If it decides to do it asynchronously, how do I know when it's done?

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng                         email@hidden
Mac Software Designer               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

  • Prev by Date: Re: Question regarding NSArrayController, KVO and Core Data
  • Next by Date: Re: Is setting the class the same as setting a parent entity?
  • Previous by thread: Open an NSMenu in Code/Global Hotkeys
  • Next by thread: WebConvertNSImageToCGImageRef Issues
  • Index(es):
    • Date
    • Thread