diff options
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 83c163a85..4823f4b8b 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1369,7 +1369,12 @@ void ScintillaCocoa::StartDrag() { // Put the data to be dragged on the drag pasteboard. SelectionText selectedText; - NSPasteboard *pasteboard = [NSPasteboard pasteboardWithName: NSPasteboardNameDrag]; + NSPasteboard *pasteboard = nil; + if (@available(macOS 10.13, *)) { + pasteboard = [NSPasteboard pasteboardWithName: NSPasteboardNameDrag]; + } else { + pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard]; + } CopySelectionRange(&selectedText); SetPasteboardData(pasteboard, selectedText); |