• 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: Finder Refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Refresh


  • Subject: Re: Finder Refresh
  • From: Greg Titus <email@hidden>
  • Date: Thu, 17 May 2001 13:21:56 -0700

On Thursday, May 17, 2001, at 11:20 AM, Douglas Davidson wrote:
Generally the way to inform the Finder from Cocoa that something has changed is

[[NSWorkspace sharedWorkspace] noteFileSystemChanged:path];

The Finder should then be able to do the right thing, although I can't guarantee that it will in all cases.

Just to follow up on this:

The Finder does indeed seem to do great in all cases that I tested for when you use this call. (OmniWeb downloads were incredibly annoying to deal with until I discovered this call in the documentation.)

Also note that if you are writing a document-based application with NSDocument, et cetera, then those AppKit classes look like they call -noteFileSystemChanged: for you when they save files so you don't need to do anything manually.

--Greg


  • Follow-Ups:
    • Re: Finder Refresh
      • From: Matt Ridley <email@hidden>
References: 
 >Re: Finder Refresh (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Property List Question
  • Next by Date: Re: Type/Creator Codes
  • Previous by thread: Re: Finder Refresh
  • Next by thread: Re: Finder Refresh
  • Index(es):
    • Date
    • Thread