• 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: kFSEventStreamEventFlagItemRenamed is for rename or trash ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ?


  • Subject: Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ?
  • From: Sean McBride <email@hidden>
  • Date: Fri, 19 Oct 2012 10:31:25 -0400
  • Organization: Rogue Research Inc.

On Fri, 12 Oct 2012 15:30:56 +0900, Alfian Busyro said:

>> After you're told a file has moved, get all the Trash directories using
>> -[NSFileManager URLsForDirectory:inDomains:] and see if the file is a
>> descendant of any one of them.
>would you mind to give me a simple example of this method ?
>after I investigate this method, I can't find trash directory for
>NSSearchPathDirectory parameter.

NSTrashDirectory was only added in the 10.8 sdk.  It has been a longstand criticism that many of the "special" folders named & findable using the constants and APIs in Folders.h are missing in the Cocoa API.

Also when searching for "trash" also search for "recycle" which is used in some API, presumably surviving from NeXTStep, ex: recycleURLs:completionHandler:

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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


References: 
 >kFSEventStreamEventFlagItemRenamed is for rename or trash ? (From: Alfian Busyro <email@hidden>)
 >Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ? (From: Kyle Sluder <email@hidden>)
 >Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ? (From: Alfian Busyro <email@hidden>)

  • Prev by Date: Re: How to send fetchrequest to main context from a local context on a separate thread?
  • Next by Date: Scene Kit
  • Previous by thread: Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ?
  • Next by thread: copy in WebView
  • Index(es):
    • Date
    • Thread