• 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: Putting files in Trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Putting files in Trash


  • Subject: Re: Putting files in Trash
  • From: "Tomas Zahradnicky, Jr." <email@hidden>
  • Date: Sun, 11 Nov 2001 14:27:47 +0100

I'm putting files in the trash with:

[[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:sourceDirPath destination:@"" files:array tag:&resultTag];

This work, but I can't get the Finder to update the window. If I log out and log back in, the items show.

If I remember correctly, to update 9.x Finder's windows there was neccessary a call to FlushVol (Carbon). So you could try to flush disk's cache and finder should update its windows.


-Tomas
--
# Tomas Zahradnicky, Jr
# The Czech Technical University
# FEL-CTU, Prague


  • Prev by Date: Re: New Cocoa Programmer
  • Next by Date: %vx? Re: AltiVec on OSX in Cocoa
  • Previous by thread: Re: Putting files in Trash [revisited]
  • Next by thread: NSImageView notification
  • Index(es):
    • Date
    • Thread