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 s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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