Re: Finder Refresh
Re: Finder Refresh
- Subject: Re: Finder Refresh
- From: Greg Titus <email@hidden>
- Date: Thu, 17 May 2001 13:21:56 -0700
On Thursday, May 17, 2001, at 11:20 AM, Douglas Davidson wrote:
Generally the way to inform the Finder from Cocoa that something has
changed is
[[NSWorkspace sharedWorkspace] noteFileSystemChanged:path];
The Finder should then be able to do the right thing, although I can't
guarantee that it will in all cases.
Just to follow up on this:
The Finder does indeed seem to do great in all cases that I tested for
when you use this call. (OmniWeb downloads were incredibly annoying to
deal with until I discovered this call in the documentation.)
Also note that if you are writing a document-based application with
NSDocument, et cetera, then those AppKit classes look like they call
-noteFileSystemChanged: for you when they save files so you don't need
to do anything manually.
--Greg