Dragging destination support #87
barnettben
started this conversation in
Questions
Replies: 1 comment 1 reply
-
|
totally. that is indeed an overlook |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It looks like STTextView on macOS doesn't yet support dragging text in from other apps.
I'd be happy to take a crack at adding this.
I see there are stubs/files where dragging destination code would go. It also looks at first glance like
readSelection(from: NSPasteboard, type: NSPasteboard.PasteboardType) -> Boolwould do the job of reading in dragging pasteboard content.I was thinking just text (plain/rtf) for now, not dragging files in. That way no changes would be needed to the pasteboard reading code.
For moving the insertion point while dragging, I've not looked closely at the mouse tracking code yet, but would seek to reuse anything existing before writing new code.
Would this be something useful?
Beta Was this translation helpful? Give feedback.
All reactions