New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

How to get widgets to support drag and drop?


Post Reply New Thread Subscribe

 
Thread Tools
mjcox2000

 
Member Since: May 12, 2012
Posts: 9
mjcox2000 is on a distinguished road

mjcox2000 is offline
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!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,813
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
The explanation for this is in the Dashboard documentation (here). More specifically, read this.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
mjcox2000

 
Member Since: May 12, 2012
Posts: 9
mjcox2000 is on a distinguished road

mjcox2000 is offline
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?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,813
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
Indeed it is. Try this instead.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
mjcox2000

 
Member Since: May 12, 2012
Posts: 9
mjcox2000 is on a distinguished road

mjcox2000 is offline
Thanks! That works well.
QUOTE Thanks

Post Reply New Thread Subscribe


« QT installation problems | Using bash commands in widgets? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Drag and Drop Lock IvanLasston OS X - Apps and Games 6 01-06-2013 10:37 PM
Drag and drop to overwrite? (a GUI version of the 'cp' command?) Disco Patrick OS X - Operating System 0 09-18-2010 12:34 PM
Help me with drag and drop ceejay Switcher Hangout 27 09-04-2010 11:18 PM
VMware Fusion 3 won't drag & drop Boomzilla Running Windows (or anything else) on your Mac 1 12-26-2009 08:11 PM
Firefox users: extension that allows you to drag 'n' drop to upload remain OS X - Apps and Games 4 06-18-2007 12:16 AM

All times are GMT -4. The time now is 11:27 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?