Re: how to move files to trash?
Re: how to move files to trash?
- Subject: Re: how to move files to trash?
- From: j o a r <email@hidden>
- Date: Wed, 29 Oct 2003 09:29:29 +0100
Have you looked at NSWorkspaceRecycleOperation in NSWorkspace? I've
never used it myself, so I don't know if / how it works.
j o a r
On 2003-10-29, at 09.09, Sascha Kujawa wrote:
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?
_______________________________________________
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.