Re:
Re:
- Subject: Re:
- From: Brian Webster <email@hidden>
- Date: Mon, 7 Oct 2002 09:14:46 -0500
On Monday, October 7, 2002, at 12:00 AM,
email@hidden wrote:
The problem is that if I drag a file from the Finder, the Finder does
nothing. The Finder should do something similar to my draggedImage call
and see that the drag operation is NSDragOperationDelete and move the
file to the trash.
I believe this is because the Carbon drag manager uses a somewhat
different paradigm when it comes to deleting files. There isn't really
a separate "delete" operation, but it is instead treated as a file
move, but applications are supposed to check to see if the file (or
other object) is being moved to the trash, and if it is, act
appropriately. The trash can in the dock will return the trash folder
as the drop location and the Finder responds by moving the dragged
files to the trash. Unfortunately, there doesn't appear to be any
mechanism in Cocoa to do this.
That being said, I think you should think twice about creating an exact
duplicate of a standard interface element such as the trash can, unless
you're making some sort of dock replacement or something along those
lines.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.