• 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: Moving File to Trash Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving File to Trash Problem


  • Subject: Re: Moving File to Trash Problem
  • From: Robert S Goldsmith <email@hidden>
  • Date: Mon, 17 Sep 2001 16:54:48 +0100

This could simply be the general problem finder has with refreshing it's windows. It is very very annoying but often the finder windows do not show the most recent state of your directories. I find I often have to move a file out and then back into a window to get finder to update the contents :(

OS 10.1 should fix this ...

Robert

Randall Voth wrote:

When I use NSWorkspace's routine for moving a file to the trash, it doesn't always show up in the Finder. (I have called -noteFileSystemChanged.)

good = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation ... ];

The problem seems to be that emptying the trash actually deletes the trash folder. The Finder then does not recognize the fact that another trash folder has been created by the call. Logging out and back in again displays the file in the trash properly.

If a file is already in the trash, any file I move there shows up properly.

How do I notify the Finder the trash folder has been re-created?

- Randall Voth
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Moving File to Trash Problem (From: Randall Voth <email@hidden>)

  • Prev by Date: Re: distributed processing ad multiThreading
  • Next by Date: Re: Programatically opening an NSDocument subclass ??
  • Previous by thread: Moving File to Trash Problem
  • Next by thread: Cocoa Game Development
  • Index(es):
    • Date
    • Thread