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

how to move files to trash?


  • Subject: how to move files to trash?
  • From: Sascha Kujawa <email@hidden>
  • Date: Wed, 29 Oct 2003 09:09:17 +0100

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?


With greetings from Germany

Sascha Kujawa
Software QA Engineer
and Betatest Coordinator
Emagic Soft- & Hardware GmbH
phone: +49 (0)4101 495-324
_______________________________________________
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: Jérome Foucher <email@hidden>
    • Re: how to move files to trash?
      • From: j o a r <email@hidden>
References: 
 >Updating the Trash icon in OS 10.1 (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Displaying Realtime Data
  • Next by Date: newbie Question: Project Builder does not build the project missing file or directory
  • Previous by thread: Updating the Trash icon in OS 10.1
  • Next by thread: Re: how to move files to trash?
  • Index(es):
    • Date
    • Thread