• 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: Problem using NSWorkspace to copy a package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using NSWorkspace to copy a package


  • Subject: Re: Problem using NSWorkspace to copy a package
  • From: Ben Kazez <email@hidden>
  • Date: Mon, 27 Feb 2006 23:41:15 -0600

On Feb 26, 2006, at 9:03 PM, Chris Parker wrote:

On Feb 25, 2006, at 4:05 PM, Ben Kazez wrote:

I'm trying to use NSWorkspace to copy a package (.wdgt bundle), using -performFileOperation:source:destination:files:tag:. However, executing this is simply creating an empty directory of the proper name in the desired location. If I remove subfolders from the package (i.e., make it "flat"), the copy works as desired. I'm experiencing similar behavior with -[NSFileManager copyPath:toPath:handler:].

Has anyone else experienced this problem?

Are you sure you're not getting an error back from NSFileManager? If -[NSFileManager copyPath:toPath:handler:] returns NO and you have a handler object in place that responds to the - fileManager:shouldProceedAfterError: method, the errorInfo dictionary will contain some information about what might have gone wrong.

Well, this is strange. I indeed had a handler object in place, and I had used it to show that the failure happened after its directory traversal encountered the first subdirectory. But the code is actually working perfectly now. No errors and no unexpected behavior.


Sorry to bother you and the list about this!

Ben
_______________________________________________
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: 
 >Problem using NSWorkspace to copy a package (From: Ben Kazez <email@hidden>)
 >Re: Problem using NSWorkspace to copy a package (From: Chris Parker <email@hidden>)

  • Prev by Date: Re: Why is NSFontManager lying to me ?
  • Next by Date: Creating Cocoa Application Installer via Xcode 2.2?
  • Previous by thread: Re: Problem using NSWorkspace to copy a package
  • Next by thread: Menu Item Bindings Problem
  • Index(es):
    • Date
    • Thread