Re: Updating the Desktop
Re: Updating the Desktop
- Subject: Re: Updating the Desktop
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 29 Jan 2004 22:34:25 -0800
On Jan 29, 2004, at 8:40 PM, Alex Pagliaro wrote:
I'm writing an application that moves files around on the desktop, and
I notice that sometimes it takes 10 or so seconds before the files on
the desktop will actually change in response to my app moving the
files.
I was wondering if there was some way to force the desktop to update
itself with the new files.
[[NSWorkspace sharedWorkspace] noteFileSystemChanged:[NSString
stringWithFormat:@"%@/Desktop", NSHomeDirectory()]];
Also, just calling [[NSWorkspace sharedWorkspace]
noteFileSystemChanged] might work.
You have to manually tell the Finder to update its directory listings;
it does not poll for updates like the Classic Finder did.
Nick Zitzmann
<
http://seiryu.home.comcast.net/>
<
http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request
UNIX: Where /sbin/init is Job #1.
_______________________________________________
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.