emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag and drop on NS?


From: Po Lu
Subject: Drag and drop on NS?
Date: Fri, 25 Mar 2022 16:53:05 +0800

Does anyone with experience with Nextstep APIs (either GNUstep or Cocoa)
want to step up to implement drag-and-drop on that platform?

You will have to implement `x-begin-drag', which will probably involve
creating a pasteboard visible to Lisp as `XdndSelection' in nsselect.m,
and passing that pasteboard to [NSView dragImage].  See the
implementations on X and Haiku for more details.

I didn't figure out some details: the function has to be synchronous
(i.e. it should only return when the drop completes or was canceled),
and it has to take into account different selection targets, such as
STRING and text/uri-list.

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]