Accepting files dragged from iTunes in a Cocoa app
Accepting files dragged from iTunes in a Cocoa app
- Subject: Accepting files dragged from iTunes in a Cocoa app
- From: email@hidden (Stefan Haller)
- Date: Wed, 10 Sep 2008 15:51:12 +0200
When dragging files from iTunes, iTunes sends the following drag flavors
(according to DragPeeker X):
phfs (kDragFlavorTypePromiseHFS)
rWm1 (kDragPromisedFlavorFindFile)
Hpfl
itun
I can't find any reference to the last two on the web, so I assume they
are private flavors.
In a Carbon application I solved the problem by handling the
kDragPromisedFlavorFindFile flavor, which worked quite well. How do I
do this in a Cocoa app though? I can't find any NS*PboardType that
seems to relate to it.
Accepting the file promise is not what I want; I don't want to create a
new file, but reference the existing file in the iTunes library.
Any ideas?
Thanks,
Stefan
--
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/
_______________________________________________
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