Opening the Trash in the Finder?
Opening the Trash in the Finder?
- Subject: Opening the Trash in the Finder?
- From: Matt Gemmell <email@hidden>
- Date: Tue, 28 May 2002 00:41:26 +0100
Hi again all,
I'm aware of how to move files to the Trash, but is it possible to tell
the Finder to open the Trash window?
Similarly, can I get (NSFileManager's) -directoryContentsAtPath: or
enumeratorAtPath: for the Trash folder? I'd settle for just being able
to tell the Finder to open it, though.
I'm unsure as to where the Trash for the current user actually lives in
the filesystem, and indeed if I could even use that path with
NSWorkspace's -openFile: method without needing to authenticate first.
I'm not trying to do anything fancy; my app simply deals with several
files, and has a proxy for the Trash in its window. Since the user can
drag files there to move them to the Trash, it would be nice if they
could also click the proxy to tell the Finder to open the Trash window.
Thanks for any thoughts, as always. :)
Best,
-Matt
--
Matt Gemmell
Scotland Software
<
http://www.scotlandsoftware.com/>
_______________________________________________
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.