Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Refresh



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


References: 
 >Re: Finder Refresh (From: Douglas Davidson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.