Re: Opening the Trash in the Finder?
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.