NSFileManager move files to trash

Discussion in 'Mac Programming' started by McBgnr, Jun 2, 2009.

  1. macrumors regular

    Joined:
    Apr 13, 2009
    #1
    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?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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...
     
  3. thread starter macrumors regular

    Joined:
    Apr 13, 2009
    #3
    Thanks for the link. I am taking a look at it :)
     
  4. macrumors 6502a

    GorillaPaws

    Joined:
    Oct 26, 2003
    Location:
    Richmond, VA
    #4

Share This Page