Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Drag and drop dashboard widget javascript multiple items

Drag and drop dashboard widget javascript multiple items
Thread Tools
tie
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Jul 3, 2005, 09:24 AM
 
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.
(Last edited by tie; Jul 3, 2005 at 10:44 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:19 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2