Re: Regarding Trash programming...
Re: Regarding Trash programming...
- Subject: Re: Regarding Trash programming...
- From: Tomas Franzén <email@hidden>
- Date: Thu, 28 Dec 2006 12:58:32 +0100
On 28 dec 2006, at 10.51, Amit Jain wrote:
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.
Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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