on-drop-file in frame:basic-mixin
Called when the user drags a file onto the window.1 Drag-and-drop
must first be enabled for the window with
accept-drop-files.
Under Mac OS X, when the application is running and user
double-clicks an application-handled file or drags a file onto the
application's icon, the main thread's application file handler is
called (see
application-file-handler). The default handler calls the
on-drop-file method of the most-recently activated frame if drag-and-drop is
enabled for that frame, independent of the frame's eventspace (but
the method is called in the frame's eventspace's handler
thread). When the application is not running, the filenames are
provided as command-line arguments.
(voidsenda-frame:basic-mixinon-drop-filepathname
pathname: stringCalls
handler:edit-filewithpathnameas an argument.
1 Under X, drag-and-drop is supported via the XDND protocol.