Re: Regarding Trash programming...
Re: Regarding Trash programming...
- Subject: Re: Regarding Trash programming...
- From: Olivier Destrebecq <email@hidden>
- Date: Tue, 2 Jan 2007 09:32:44 +0100
You can only declare the type of drag you accept. You can accept any
drag type you want in your application as long as you know the type
(I seem to remember something about cross application drag, but i'm
not sure, it might just rely on drag type). I doubt that a dragged
playlist will give you any meaningful information that you'll
understand.
You'd have to accept all drag and return delete type for the drag
operation. Itunes would then delete the playlist.
good luck
Olivier
http://otusweb.blogspot.com
http://www.flickr.com/photos/otusweb/
On Dec 29, 2006, at 8:06 AM, Amit Jain wrote:
Thanks for the reply Olivier.
Olivier can it be possible for any other application kept on the
dock that would react like trash when we drag n drop playlist over
that icon.And that application can get the id of the playlist
dropped over it?
One more question is that why user is not able to drag n drop
playlist on desktop?
Thanks...
Amit
On 12/28/06, Olivier Destrebecq < email@hidden> wrote:
The trash does not recognize anything. Itunes recognize that the
drag landed in the trash and allowed it at drag time. Then itunes
display the warning message.
When you start your drag, you need to allow the delete drag type.
Then when you receive confirmation that the drag ended, you need to
check what kind of drag has been accepted by the receiver of the
drag. If the drag is delete type, then you know it landed in the
trash and you take appropriate action.
hope this helps
Olivier Destrebecq
http://otusweb.spymac.com /portfolio/
On Dec 28, 2006, at 10:51 AM, Amit Jain wrote:
Hi All,
As we all know that Playlist from iTunes cannot be dragged and
dropped to
desktop.
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.
Help required urgently.
Regards..
Amit Jain.
_______________________________________________
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
_______________________________________________
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