Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

McBgnr

macrumors regular
Original poster
Apr 13, 2009
144
0
I want to delete files to Trash using NSFileManager in my program.

However, I am using removefilesAtPath method and this method deletes the file permanently. Is there any option so the the deleted files will go to the Trash?
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
There is significant discussion on this over at CocoaDev...

I'll leave you to read through it and decide on the best method for you! You would have thought there would be a simple answer, but there is not as the Apple supplied method does not always do what you expect...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.