Re: NSWorkSpace performFileOperation (a)synchronousness
Re: NSWorkSpace performFileOperation (a)synchronousness
- Subject: Re: NSWorkSpace performFileOperation (a)synchronousness
- From: Jens Alfke <email@hidden>
- Date: Thu, 05 Mar 2015 08:23:46 -0800
> On Mar 5, 2015, at 2:36 AM, Aandi Inston <email@hidden> wrote:
>
> My question relates to asynchronousness (is that a word)? It looks like a
> synchronous method as it returns a success or failure. But the documentation
> says of the tag variable "a positive integer if the operation was performed
> asynchronously. If the value is a positive integer, the value is a tag that
> identifies the requested file operation." This confuses me.
Yeah, that’s weird. I’ve never used that method; I just use NSFileManager to move/copy files. It’s a simple synchronous API (but of course you can invoke it on a background thread.)
—Jens
_______________________________________________
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