Skip navigation.
 
mlUpdating the Dock Trash icon when trashing a file
FROM : Jeremy Dronfield
DATE : Mon Nov 29 22:22:35 2004

In my application, the user can move files to the trash with a
Command-Backspace keystroke. Although the selected files are getting
moved to the trash properly, the Dock trash icon doesn't update itself
to its "items-in-trash" look. It updates itself once you click on it,
but should do it automatically. I've tried sending an -[NSWorkspace
noteFileSystemChanged] (both types, with and without the relevant
path), but it doesn't do anything. What am I missing?

(By the way, I'm using NSFileManager, not NSWorkspace, to move the
files.)

Regards,
Jeremy

Related mailsAuthorDate
mlUpdating the Dock Trash icon when trashing a file Jeremy Dronfield Nov 29, 22:22
mlRe: Updating the Dock Trash icon when trashing a file Jeremy Dronfield Nov 30, 12:00