Or any other location but how does Trash recognizes Playlist and
gives an
alert message
asking for confirmation to delete the selected Playlist.
Please help me in finding the event by which Trash recognises that a
Playlist has been dragged and dropped.
Hi Amit,
When Cocoa asks for the dragging operation mask
(draggingSourceOperationMaskForLocal:), reply with (at least)
NSDragOperationDelete to enable dragging to the trash. Then in
draggedImage:endedAt:operation:, you can check if the operation
parameter is NSDragOperationDelete, and if so, do your delete stuff.