Re: Letting the Finder know something changed?
Re: Letting the Finder know something changed?
- Subject: Re: Letting the Finder know something changed?
- From: Prachi Gauriar <email@hidden>
- Date: Sat, 29 Jan 2005 13:39:06 -0500
On Jan 29, 2005, at 1:26 PM, James Bucanek wrote:
I've been searching developer.apple.com for 20 minutes, and I can't
find an answer to this stupid question:
When I write/rewrite/update a file in an open window or on the
desktop, I'd like to notify the Finder that the files have changed so
it can update the display. I swear there was some simple way of doing
this, but for the life of me I can't remember what it is, nor can I
find an API. Can anyone give me a clue?
NSWorkspace's -noteFileSystemChanged:
- (void)noteFileSystemChanged:(NSString *)path
Informs NSWorkspace that the file system specified by path has changed.
NSWorkspace then gets the status of all the files and directories it is
interested in and updates itself appropriately. This method is used by
many objects that write or delete files.
See Also: – fileSystemChanged
-Prachi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden