Force Finder to update *All* files within a folder (Slightly Off Topic)
Force Finder to update *All* files within a folder (Slightly Off Topic)
- Subject: Force Finder to update *All* files within a folder (Slightly Off Topic)
- From: Nathan Alf <email@hidden>
- Date: Wed, 04 Jun 2003 13:39:16 -0500
We are beginning to move the prepress company I work for to MacOSX - and there are a few issues
that have come to light.
One of the main gripes I hear from end users is that files on our windows 200 server that have been
added or modified by server automation - or another user is not relected by the Finder.
In doing a bit more research - I have arrived upon this:
[[NSWorkspace sharedWorkspace] noteFileSystemChanged:@"/Volumes/Server/FolderToUpdate/"];
will reveal files if they are not listed - but will not update modification dates,file sizes,
icons, etc..
One can point noteFileSystemChanged all the way down to the exact file - and it will
update properly - revealing any changes (size, modification dates, icons, etc.):
[[NSWorkspace sharedWorkspace] noteFileSystemChanged:@"/Volumes/Server/Folder/fileToUpdate"];
So - with this said - I made an application that gets the frontmost window, gets a list of every
item within the folder, and updates them all - gave it a refresh icon, and dropped it into the
Finder toolbar. So far so good - but it was a bit distracting to have the app come to the front, so
I made the Finder activate again right when the app is called.
So the reason I am writing this is:
Is there anyway to get this same functionality without this crude hack?
Truthfully I am a bit unimpressed with the Finder - and it would be really nice if bringing a
window to the front would update all the files - or if Apple would include a refresh button by
default.
If anyone has any better ideas on this - please let me know.
Thanks for tuning in -
Nate Alf
_______________________________________________
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.