This task explains how to inform the file system of changes using NSWorkspace.
If you create a file directly, use the noteFileSystemChanged
method
to inform NSWorkspace that it needs to update itself. The noteFileSystemChanged:
method informs NSWorkspace that the file system at a specific path
has changed.
NSDocument and NSSavePanel call noteFileSystemChanged
automatically,
so you don’t need to use the NSWorkspace methods if you save a
file using either of these classes.
© 2002, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-03-06)