On Oct 1, 2012, at 3:29 PM, Ken Thomases <k...@codeweavers.com> wrote:
> On Oct 1, 2012, at 2:49 PM, tridiak wrote: > >> Is there an API (carbon or cocoa) to determine if an item is in the trash? >> NSFileManager, NSFileHandle and carbon Files.h do not have anything. > > err = FSDetermineIfRefIsEnclosedByFolder (kOnAppropriateDisk, > kTrashFolderType, &ref, &result); > > (That's an example directly out of the Leopard-era Folder Manager Reference > docs.) Note that this API is deprecated in Mountain Lion. Charles _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com