mac drag & drop files on app
BlitzMax Forums/BlitzMax Programming/mac drag & drop files on app
| ||
it's probably already been answered long time ago, but ... search is kind of broken and google doesn't help much so, here is the question : Is it possible to drag n drop a file on an application built with blitzmax on mac (os x 10.11 el capitan) I need it for a simple tool that accept psd files and export json, and I'd really like not to use a filerequester for that. |
| ||
I would like to know the same - for maxgui on linux (with Bruceys GTK wrapper). bye Ron |
| ||
. |
| ||
This does not work for Linux ("of course" I tried that already - and it works on Windows but not Linux). For linux one might implement "xdnd" https://freedesktop.org/wiki/Specifications/XDND/ Limiting to GTK there is https://wiki.gnome.org/GnomeLove/DragNDropTutorial But this is for the ones writing GTK wrappers or MaxGUI-code (dunno what exactly is blocking dragndrop support now). bye Ron |
| ||
@Derron: Point taken ("of course" if you had said you had tried that already I would never have posted in the first place). I have removed my irrelevant suggestion and slapped myself repeatedly for being so stupid. |
| ||
for Bobysait your suggestion (using MaxGUI and its Accept_Files-flagged window) might still be helpful. I only spoke for the Linux+MaxGUI (GTK-flavor) applications. bye Ron |
| ||
WINDOW_ACCEPTFILES works very well as I could have expected it to, but ... I should have been more precise, I just realize I didn't mention it : What I was looking for is not a window that enables drag & drop of files in the application window -> I was looking for a drag & drop on the "application icon" using then AppArgs to read the file. Curiously it doesn't work on mac. Maybe it's an OS limitation, I don't know mac very well so ... |
| ||
Interesting post here about related stuff : http://stackoverflow.com/questions/2489961/dropping-files-onto-dock-icon-in-cocoa |