I was busy implementing some code to handle "drop" events on a canvas
for one of my OS X projects.
Handling the files and folders from the drop was fairly easy. Except
that I didn't find a way to specify that I wanted only ONE specific
type of file (say graphic only files in a folder for example). I
found a way to sort of handle that.
However, handling a drop from another application, like a web
browser, was hard trying to figure out what was being dropped.
Especially if you wanted the filename/URL of the graphic.
I remember from the old OS 9 days there was an application called
"DragPeeker" that allowed you to see all the flavours of the drag. I
figured if I could "see" what was coming, I could use the RAWDATA
info in the drop object and get to what I wanted. And of course
ignore anything else.
So, after a short search, I found "Drag Peeker X". More or less the
same program as DragPeeker but updated for OS X. Works quite well and
saved me a lot of time trying to see what I could use in the drop and
what I couldn't.
Might help someone else in the same area (or if you want to test your
own drop stuff too).
http://www.idio.com/Products/dpx/
Mel
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>