unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Drag and drop on NS?
       [not found] <87h77m8lce.fsf.ref@yahoo.com>
@ 2022-03-25  8:53 ` Po Lu
  0 siblings, 0 replies; only message in thread
From: Po Lu @ 2022-03-25  8:53 UTC (permalink / raw)
  To: emacs-devel

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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-25  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87h77m8lce.fsf.ref@yahoo.com>
2022-03-25  8:53 ` Drag and drop on NS? Po Lu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).