[ Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File ]
|Status:||5 - New|
|Priority:||1 - Request for Enhancement, e.g. asking for a feature|
|Scope:||2 - Specific to an operating system|
|Summary:||Support for filename drag-n-drop on MacOS X|
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
13:12 Dec 20, 2004
|> > After some hours reading the Apple developer docs, I managed to drop |
> > a filename from an Fl_Hold_Browser onto a program icon in the Dock
> > which then launches the application with the given filename as input.
> > To achieve this, I have written the function dnd_file(char* fullpath)
> > given below. What would you think about adding this function to the
> > class Fl as an alternative to Fl::dnd() which only drags text?
> I'd rather add an enumeration argument to Fl::dnd() for the data
> type - currently FL_DND_TEXT (default) or FL_DND_FILENAME, with a
> compatible Fl::dnd() method which calls the new API.
> Can you post this all as a STR?
Ok, attached is a new verison of the Mac specific dnd implementation which supports an optional argument for the filetype. The filename/text is taken from the cut/paste buffer as before for backwards compatibility.
17:34 Feb 05, 2005
|Reassigned to 2.0. ||
[ Return to Bugs & Features | Post Text | Post File ]