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

Moving File to Trash Problem


  • Subject: Moving File to Trash Problem
  • From: Randall Voth <email@hidden>
  • Date: Mon, 17 Sep 2001 07:51:51 -0700

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


  • Follow-Ups:
    • Re: Moving File to Trash Problem
      • From: Robert S Goldsmith <email@hidden>
  • Prev by Date: Re: Object Allocations
  • Next by Date: Re: distributed processing ad multiThreading
  • Previous by thread: Re: Programatically opening an NSDocument subclass ??
  • Next by thread: Re: Moving File to Trash Problem
  • Index(es):
    • Date
    • Thread