Moving File to Trash Problem
Moving File to Trash Problem
- Subject: Moving File to Trash Problem
- From: Randall Voth <email@hidden>
- Date: Mon, 17 Sep 2001 07:51:51 -0700
When I use NSWorkspace's routine for moving a file to the trash, it
doesn't always show up in the Finder. (I have called
-noteFileSystemChanged.)
good = [[NSWorkspace sharedWorkspace]
performFileOperation:NSWorkspaceRecycleOperation ... ];
The problem seems to be that emptying the trash actually deletes the
trash folder. The Finder then does not recognize the fact that another
trash folder has been created by the call. Logging out and back in again
displays the file in the trash properly.
If a file is already in the trash, any file I move there shows up
properly.
How do I notify the Finder the trash folder has been re-created?
- Randall Voth