• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FS item in trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FS item in trash


  • Subject: Re: FS item in trash
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 01 Oct 2012 15:29:32 -0500

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.)

Cheers,
Ken


_______________________________________________

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

  • Follow-Ups:
    • Re: FS item in trash
      • From: Charles Srstka <email@hidden>
References: 
 >FS item in trash (From: tridiak <email@hidden>)

  • Prev by Date: Re: The joy of unexpected SIGABRTs
  • Next by Date: Re: The joy of unexpected SIGABRTs
  • Previous by thread: FS item in trash
  • Next by thread: Re: FS item in trash
  • Index(es):
    • Date
    • Thread