Re: Updating Trash icon
Re: Updating Trash icon
- Subject: Re: Updating Trash icon
- From: Greg Hurrell <email@hidden>
- Date: Tue, 3 Jun 2003 01:58:37 +0930
El lunes, 2 juni, 2003, a las 21:45 Australia/Adelaide, Ben Dougall
escribis:
i read something about this on the carbon list a little while ago.
somebody's opinion was the best way to deal with deleting files is to
ask the finder do it, whatever the way to do that is (apple events?).
that way the finder deals with any complications there maybe rather
than trying to deal with them yourself, such as the full/empty trash
icon and also handling two files of the same name being in the bin,
and maybe further issues.
This has been discussed on the list before, but to re-iterate a point:
You shouldn't depend on the existence of the Finder. Some users don't
run it and use alternative like Path Finder instead. If you send Apple
Events to the Finder you will cause it to launch and most certainly
annoy those users (even if they are only a minority, this is still
important to consider).
Use the NSWorkspace methods, handle the duplicate filename issue in
your own code (until Apple provides that feature from NSWorkspace), and
try to live without live updating of the Trash icon. There are some
possible solutions suggested in the archives, but their reliability
seems patchy at best.
Cheers
Greg
_______________________________________________
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.