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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Cannot move files to trash goranzon Mac Basics and Help 2 Oct 5, 2010 08:56 AM
Can't move files to trash! help! mgs53 Mac Basics and Help 7 Aug 31, 2010 08:09 PM
itunes not moving files to trash jfish666 Mac Applications and Mac App Store 4 Jun 19, 2009 10:01 PM
Moving files to trash wattso OS X 4 Jul 15, 2007 05:00 PM
iTunes doesn't let me move files to trash? Gary King Mac Applications and Mac App Store 4 Jan 23, 2006 04:18 PM


All times are GMT -5. The time now is 05:57 AM.

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

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