• 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: Move a file to the Trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Move a file to the Trash (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Annoying runtime message
  • Next by Date: Re: Move a file to the Trash
  • Previous by thread: Re: Move a file to the Trash
  • Next by thread: Re: Move a file to the Trash
  • Index(es):
    • Date
    • Thread