• 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: How to empty the Trash programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to empty the Trash programmatically?


  • Subject: Re: How to empty the Trash programmatically?
  • From: Raffael Cavallaro <email@hidden>
  • Date: Fri, 16 Apr 2010 10:22:47 -0400

On Apr 16, 2010, at 4:46 AM, Jeremy Pereira wrote:

> +1 to that.  Any application that emptied my Trash programmatically would find itself being the first new item in there.

ditto.

<soapbox>
The whole reason the trash exists is so users do not accidentally lose data. It gives them the opportunity to review the contents of the trash before emptying it and thereby allows them to retrieve files that have inadvertently been placed there (accidental overly broad Finder selection before dragging to the trash is a very common example). I know users who have been on the platform since the very first 128K Mac who quite deliberately only empty the trash once a week or so. When this feature first appeared with the original Mac it was a godsend for many because one now had a very easy, OS supported method of effectively undeleting files.

Any app that empties the trash without the user's explicit consent is an unintended data loss waiting to happen.

Don't do this. At least some of your users will be very unhappy. In extreme circumstances, you might even risk legal action because it could be argued that your app knowingly destroyed valuable user data without the user's knowledge or consent.
</soapbox>

Raffael Cavallaro
email@hidden





_______________________________________________

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: 
 >How to empty the Trash programmatically? (From: Oleg Krupnov <email@hidden>)
 >Re: How to empty the Trash programmatically? (From: Jens Alfke <email@hidden>)
 >Re: How to empty the Trash programmatically? (From: Oleg Krupnov <email@hidden>)
 >Re: How to empty the Trash programmatically? (From: Dave Keck <email@hidden>)
 >Re: How to empty the Trash programmatically? (From: Oleg Krupnov <email@hidden>)
 >Re: How to empty the Trash programmatically? (From: Graham Cox <email@hidden>)
 >Re: How to empty the Trash programmatically? (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: program termination after releasing self defined NSXMLParser class
  • Next by Date: Problem with setting dylib paths to ship them in my app bundle
  • Previous by thread: Re: How to empty the Trash programmatically?
  • Next by thread: Re: How to empty the Trash programmatically?
  • Index(es):
    • Date
    • Thread