dragging to trash folder problems
dragging to trash folder problems
i've implemented -draggedImage:endedAt:operation: and i check if the
operation is an NSDragOperationDelete to detect drags to the trash,
and if so, i then appropriately delete the dragged object from my
app's document.
this all works fine as long as the user drags the object to the trash
icon in the dock.
however, if the user drags an object to the trash icon, and then
subsequently drags to and drops on the (popped) opened trash folder,
i no longer receive the NSDragOperationDelete operation in
-draggedImage:endedAt:operation: and hence cannot detect that this
should actually be a delete and the opened trash folder remains open
on the desktop.
not only that, but if the user drops in the (pop) opened trash
folder, since i don't perform the delete, the user can again drag the
same object to the trash icon in the dock and this opens a second
trash folder. this can be repeated many times, resulting in many
opened trash folders on the desktop.
my questions:
1) how can i detect that the user dropped into a (popped) opened trash folder?
2) is the behavior of (popping) open multiple instances of the trash
folder a (known) bug?
this is on leopard 10.5.8.
ken
_______________________________________________
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