Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding Trash programming...



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Regarding Trash programming... (From: "Amit Jain" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.