• 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: how to move files to trash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to move files to trash?


  • Subject: Re: how to move files to trash?
  • From: j o a r <email@hidden>
  • Date: Wed, 29 Oct 2003 09:29:29 +0100

Have you looked at NSWorkspaceRecycleOperation in NSWorkspace? I've never used it myself, so I don't know if / how it works.

j o a r

On 2003-10-29, at 09.09, Sascha Kujawa wrote:

I am wondering how to move files to trash with Cocoa?

[fileManager removeFileAtPath:tempPath handler:nil]
would permanently delete a file without using the trash.

So I tried to utilize "movePath", but it does not work this way:
[fileManager
movePath:tempPath
toPath:[@"~/.Trash/" stringByExpandingTildeInPath]
handler:nil
];

Any ideas?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: how to move files to trash?
      • From: Sascha Kujawa <email@hidden>
References: 
 >Updating the Trash icon in OS 10.1 (From: Chad Armstrong <email@hidden>)
 >how to move files to trash? (From: Sascha Kujawa <email@hidden>)

  • Prev by Date: newbie Question: Project Builder does not build the project missing file or directory
  • Next by Date: Re: newbie Question: Project Builder does not build the project missing file or directory
  • Previous by thread: how to move files to trash?
  • Next by thread: Re: how to move files to trash?
  • Index(es):
    • Date
    • Thread