Asynchronous Drag and Drop for Xojo
Drag and drop for Xojo desktop apps on macOS, Windows and Linux, with one API on every platform. Start a drag from any control without blocking your app, and receive text, files and images on any control.
In development — not yet released. Name and pricing are not final.
What it is
A native Xojo plugin with two classes that do drag and drop at the operating-system level:
- SOSDragSession starts a drag from any control, and returns right away instead of blocking your app until the drag ends.
- SOSDropTarget receives dragged text, files and images on any control.
The Xojo API is the same on every platform; only the way each operating system carries the drag underneath is different.
Why it exists
On macOS 27.2.1 with Xojo 2024r4.2, DragItem.Drag never returns, and Xojo's own
drop handling delivers DragEnter and DragOver but never
DropObject.
This plugin works around both problems, and gives you the same drag and drop code on Windows and Linux too.
Built entirely with Buoy
This plugin was developed entirely with Buoy.
Looking for Beta Testers
This plugin is still in development, and I'm looking for people to try it in real Xojo desktop projects on macOS, Windows and Linux.
To request access, send a private message to user Stretch327 on the ifnotnil.com forum.