Re: Force Finder to update *All* files within a folder (Slightly Off Topic)
Re: Force Finder to update *All* files within a folder (Slightly Off Topic)
- Subject: Re: Force Finder to update *All* files within a folder (Slightly Off Topic)
- From: Creed Erickson <email@hidden>
- Date: Wed, 4 Jun 2003 22:32:28 -0700
Apple's Technical Q&A QA1260 deals with this.
http://developer.apple.com/qa/qa2001/qa1260.html
On Wednesday, June 4, 2003, at 11:39 AM, Nathan Alf wrote:
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.
---
Creed Erickson <email@hidden>
"Not a shred of evidence exists in favor of the idea that life is
serious."
- Brendan Gill
_______________________________________________
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.