Hi,
I understand that this API is deprecated starting from Leopard but it is too much for me to change the code to use the Pasteboard Manager API right now. My code works fine on Tiger but fails to work on Leopard with "typeFileURL" flavor. It works fine with other flavor types, such as "kScrapFlavorTypePicture", "kScrapFlavorTypeText" etc.
Here is what I am doing in my code.
1. Add "typeFileURL" flavor after I created Drag reference object like this:
AddDragItemFlavor(mDragRef, itemRef, typeFileURL, NULL, 0, 0);
2. In the DragSendData callback later one, my code does receive the request for "typeFileURL" flavor data and I set the data like this:
SetDragItemFlavorData(mDragRef, itemRef, typeFileURL, fileURL, urlLen, 0);
This works fine on Tiger but not on Leopard. On Leopard, I always get the stop icon and cannot drop the file to the Finder.
Does anyone have idea what is wrong? Do I have to change my code to use the Pasteboard Manager API to get it work on Leopard also?
Thanks.
_______________________________________________