• 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: Opening the Trash in the Finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening the Trash in the Finder?


  • Subject: Re: Opening the Trash in the Finder?
  • From: Christophe ANDRES <email@hidden>
  • Date: Tue, 28 May 2002 21:54:51 +0100

On Tuesday, May 28, 2002, at 06:04 AM, Ondra Cada <email@hidden> wrote:

I'm unsure as to where the Trash for the current user actually lives in
the filesystem

Unless anyone finds a clean way, I would suggest making a /tmp file,
making an alias to it (Carbon), trash the file, and resolve the alias
(Carbon). This terrible hubbub should give you the *current* Trash folder;
no guarantee of course the same folder was used five minutes ago, or 'll
be used five minutes in future. Sorry I can't help better :(


I think the cleanest way to FIND (yes, this is not the answer to the question :" Opening the Trash in the Finder?") the trash folder is with FindFolder or FSFindFolder (in Folders.h - Carbon)
using kUserDomain, kTrashFolderType will return the reference to the current users Trash folder, regardless of any future change or localization.

Christophe ANDRES
(Cocoa newbie, but Mac old timer)
_______________________________________________
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.

  • Prev by Date: Re: About Panel
  • Next by Date: Re: Loading external code
  • Previous by thread: Re: Opening the trash in the Finder?
  • Next by thread: Cocoa Java: setIndicatorImageInTableColumn?
  • Index(es):
    • Date
    • Thread