Re: Updating Trash icon
Re: Updating Trash icon
- Subject: Re: Updating Trash icon
- From: Sherm Pendley <email@hidden>
- Date: Mon, 2 Jun 2003 04:08:55 -0400
On Monday, June 2, 2003, at 12:30 AM, Chad Armstrong wrote:
Is there a way to tell the Trash icon in the dock to update/refresh
itself from a Cocoa application? If I put or remove something into the
~/.Trash directory, the icon will not update itself in the Dock until I
click on the icon.
Have you tried calling the NSWorkspace method -noteFileSystemChanged?
According to its description, it notifies Finder of new files, so if
there's a window to the affected folder open, Finder can update itself.
Perhaps it will work with the trashcan too.
sherm--
"But i don't want to go among mad people," Alice remarked.
"Oh, you can't help that," said the Cat: "we're all mad here. I'm mad,
You're mad."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
"Alice in Wonderland" - Lewis Carrol
_______________________________________________
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.