• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Updating the Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Updating the Desktop (From: Alex Pagliaro <email@hidden>)

  • Prev by Date: Re: Finder-like Color Labels
  • Next by Date: Re: plist files
  • Previous by thread: Updating the Desktop
  • Next by thread: Re: Updating the Desktop
  • Index(es):
    • Date
    • Thread