Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 2, 2009, 03:49 AM   #1
McBgnr
macrumors regular
 
Join Date: Apr 2009
NSFileManager move files to trash

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?
McBgnr is offline   0 Reply With Quote
Old Jun 2, 2009, 04:15 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
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...
robbieduncan is offline   0 Reply With Quote
Old Jun 2, 2009, 04:18 AM   #3
McBgnr
Thread Starter
macrumors regular
 
Join Date: Apr 2009
Thanks for the link. I am taking a look at it :-)
McBgnr is offline   0 Reply With Quote
Old Jun 2, 2009, 06:27 AM   #4
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
What about the FSMoveObjectToTrashAsync that is mentioned at the bottom of the linked discussion?
GorillaPaws is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Finder won't move files to Trash??!! AppleTalker OS X Mavericks (10.9) 2 Feb 28, 2014 04:29 PM
Cannot move mpeg4 files to trash jozi Mac Basics and Help 0 Nov 5, 2013 01:40 AM
iPhoto (move to trash) DJTaurus OS X Mavericks (10.9) 5 Nov 3, 2013 12:41 PM
Password To Move To Trash? Joe-M iMac 3 Jul 15, 2013 04:12 PM
Plist -> Cannot move it to trash? DJTaurus Mac Basics and Help 15 Jul 26, 2012 12:59 PM

Forum Jump

All times are GMT -5. The time now is 09:13 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC