Any ideas how I can drag-and-drop multiple items onto a widget?
Right now, I am printing out event.dataTransfer.getData("text/plain")) on the dragenter event, and it appears that there is only one item there, even when I am dragging multiple items.
If this is not possible without a Cocoa plugin, then I'll probably avoid it and force the user to drag a folder. In this case, can someone point me to sample code for accessing the contents of the folder? Yes, I really am that clueless.
I'd prefer to just handle drag-and-dropping multiple items because then I don't have to worry about aliases, smart folders, and whatever other complications there may be in accessing the file system.
Edit: Related links
Using drag and drop from javascript
:
link
Dashboard programming guide:
link
Dashboard programming reference:
link
Apple's dashboard-dev mailing list:
link
Dasboardwidgets.com forums:
link
Edit:
Answered my own question. It isn't possible without Cocoa. Now I would like to know how to list smart folder (and folder alias) contents; ls doesn't work. I'll post over in the UNIX forum.