Re: Putting files in Trash
Re: Putting files in Trash
- Subject: Re: Putting files in Trash
- From: "Tomas Zahradnicky, Jr." <email@hidden>
- Date: Sun, 11 Nov 2001 14:27:47 +0100
I'm putting files in the trash with:
[[NSWorkspace sharedWorkspace]
performFileOperation:NSWorkspaceRecycleOperation
source:sourceDirPath destination:@"" files:array tag:&resultTag];
This work, but I can't get the Finder to update the window. If I
log out and log back in, the items show.
If I remember correctly, to update 9.x Finder's windows there was
neccessary a call to FlushVol (Carbon). So you could try to flush
disk's cache and finder should update its windows.
-Tomas
--
# Tomas Zahradnicky, Jr
# The Czech Technical University
# FEL-CTU, Prague