• 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: NSWorkSpace performFileOperation (a)synchronousness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSWorkSpace performFileOperation (a)synchronousness (From: Aandi Inston <email@hidden>)

  • Prev by Date: NSWorkSpace performFileOperation (a)synchronousness
  • Next by Date: Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
  • Previous by thread: NSWorkSpace performFileOperation (a)synchronousness
  • Next by thread: Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
  • Index(es):
    • Date
    • Thread