Copying files synchronously with Cocoa?
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