Skip navigation.
 
mlRe: Move a file to the Trash
FROM : James DiPalma
DATE : Sat Nov 09 22:30:08 2002

I agree. I only went out and used carbon to handle trashing files
because I needed to use carbon to move files and copy files (which also
means finding a unique name in a directory), so learning FindFolder to
find and create a trash directory was not that much more work.

But, I'm still curious exactly what gets lost by using NSWorkspace. If
its only "Comments", why worry? (except for that one adamant customer
that uses comments, I guess).

           -jim


> From: Clark Mueller <<email_removed>>
>
> If you're intending to trash the file, that's where I personally make
> the tradeoff... It may sound cruel and heartless, but if they're 99%
> of the time not recovering the file, and then 99.99% of the time not
> recovering the file to get comments or a creation date from it, then I
> will not be worried about the other 0.01% of the time.
>
> -c
>
> On Saturday, November 9, 2002, at 02:35  AM, James DiPalma wrote:
>

>> Won't using NSWorkspace cause some information to be lost when
>> performing any operation on HFS files? Testing this idea, I only
>> notice that "Comments" from Finder's info window gets lost and that a
>> copy operation will change file creation date.
>>
>> Is anything else changed/lost?
>>
>>
>>             -jim
>>
>>

>>> From: Clark Mueller <<email_removed>>
>>>
>>> What about NSWorkspace? I'm surprised nobody at least suggested
>>> this...

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlMove a file to the Trash Lorenzo Puleo Nov 6, 11:08
mlRe: Move a file to the Trash Nathan Day Nov 6, 13:14
mlRe: Move a file to the Trash Ondra Cada Nov 6, 15:03
mlRe: Move a file to the Trash Marco Binder Nov 6, 16:57
mlRe: Move a file to the Trash Ondra Cada Nov 6, 17:18
mlRe: Move a file to the Trash Olivier Nov 6, 17:55
mlRe: Move a file to the Trash Charles Srstka Nov 7, 00:40
mlRe: Move a file to the Trash Wade Tregaskis Nov 7, 05:48
mlRe: Move a file to the Trash Clark Mueller Nov 7, 06:55
mlRe: Move a file to the Trash Ondra Cada Nov 7, 13:37
mlRe: Move a file to the Trash Ondra Cada Nov 7, 13:40
mlRe: Move a file to the Trash James DiPalma Nov 9, 10:35
mlRe: Move a file to the Trash Clark Mueller Nov 9, 21:04
mlRe: Move a file to the Trash James DiPalma Nov 9, 22:30
mlRe: Move a file to the Trash Rosyna Nov 10, 05:13
mlRe: Move a file to the Trash Rosyna Nov 10, 05:37
mlRe: Move a file to the Trash Ondra Cada Nov 10, 19:59
mlRe: Move a file to the Trash Ondra Cada Nov 10, 20:25
mlRe: Move a file to the Trash Finlay Dobbie Nov 10, 21:15