Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ?
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