Re: FS item in trash
Re: FS item in trash
- Subject: Re: FS item in trash
- From: tridiak <email@hidden>
- Date: Tue, 02 Oct 2012 12:09:49 +1300
On 2/10/2012, at 10:44 AM, Charles Srstka wrote:
> On Oct 1, 2012, at 3:29 PM, Ken Thomases <email@hidden> 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
>
Ok. Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden