How to get widgets to support drag and drop?

Joined
May 12, 2012
Messages
9
Reaction score
0
Points
1
I'm making a Dashboard widget, and users need to be able to drag files onto it, with the widget getting the file's location and name. Is there a way to do this? Any help is appreciated!
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The explanation for this is in the Dashboard documentation (here). More specifically, read this.
 
OP
M
Joined
May 12, 2012
Messages
9
Reaction score
0
Points
1
That's about dragging parts of the widget around, not dragging files onto the widget. I think. Is there a way to get information from files you drag on to the widget?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Indeed it is. Try this instead.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top