How to display items in trash
-
Hi all,
what is the reight way to detect items in the trash?
And how do I display a localized name for the trash like e.g. Finder or
Spotlight?
I've tried with -displayNameAtPath: for the folder but this gives '.Trash'
which is probably not what I'm supposed to display to the user. :-)
Regards
Dirk -
Dirk Musfeldt wrote:> what is the reight way to detect items in the trash?
For each mounted volume, call
FSFindFolder(theInfo.volume, kTrashFolderType, kDontCreateFolder,
&theFile);
One way to get the volume reference number is to call
FSGetCatalogInfo(&theFile, kFSCatInfoVolume, &theInfo, 0, 0, 0);
where theFile is an FSRef for the volume's mount-point.
Greg


