• 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: Jeremy Pereira <email@hidden>
  • Date: Fri, 16 Apr 2010 12:19:10 +0100

On 16 Apr 2010, at 10:29, Matt Gough wrote:

>
> On 16 Apr 2010, at 09:46:27, Jeremy Pereira wrote:
>
>> On 16 Apr 2010, at 08:22, Graham Cox wrote:
>>
>>> Don't.
>>>
>>> The only app that the user wants to empty the trash is Finder, not yours. If they want it emptied (or emptied securely), they'll go to the Finder and use the menu there. It's OK for your app to move stuff to the trash as long as it's clear to the user that will happen, but emptying it is not your business. The clue really is the fact that doing so is not supported directly by an API.
>>
>> +1 to that.  Any application that emptied my Trash programmatically would find itself being the first new item in there.
>
> To be fair though, if it is a user-initiated emptying and it is done via Finder, then I think it is fine to initiate a Trash emptying from another app. What isn't fine is for it to be done behind the user's back.

I'll concede that point but then why waste time duplicating a piece of functionality that is easily accessible from the dock?  Unless you are developing a dock/Finder replacement application.

>
> Matt Gough

_______________________________________________

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>)
 >Re: How to empty the Trash programmatically? (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: How to find all clipping siblings for a view?
  • Next by Date: MVC question about updating the Model
  • Previous by thread: Re: How to empty the Trash programmatically?
  • Next by thread: Re: How to empty the Trash programmatically?
  • Index(es):
    • Date
    • Thread