Re: Move a file to the Trash
Re: Move a file to the Trash
- Subject: Re: Move a file to the Trash
- From: Ondra Cada <email@hidden>
- Date: Thu, 7 Nov 2002 13:37:55 +0100
On Thursday, November 7, 2002, at 12:40 , Charles Srstka wrote:
The only other method I know of is to move the file to...
Matter of factly, you've missed the *one* proper way to do so -- to use
the appropriate method which is there exactly for this task: -[NSWorkspace
performFileOperation:NSWorkspaceRecycleOperation source:destination:files:
tag:].
The only problem is that it did not work properly in 10.1. Has anybody
tried in 10.2?
Anyroad, even if it is still broken, the right way is to use it, and add a
bundle with category which patches the thing with a default, which allows
the user of the application *not* to load the bundle in case (a) the thing
is run on a future release which fixes the bug, or (b) he has his own
system-wide patch.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.