diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsselect.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nsselect.m b/src/nsselect.m index ce9d8ab3183..1ff627e6579 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -590,8 +590,14 @@ ns_decode_data_to_pasteboard (Lisp_Object type, Lisp_Object data, | |||
| 590 | 590 | ||
| 591 | [pasteboard declareTypes: new | 591 | [pasteboard declareTypes: new |
| 592 | owner: nil]; | 592 | owner: nil]; |
| 593 | |||
| 594 | #if NS_USE_NSPasteboardTypeFileURL | ||
| 593 | [pasteboard setString: [NSString stringWithLispString: data] | 595 | [pasteboard setString: [NSString stringWithLispString: data] |
| 594 | forType: NSPasteboardTypeFileURL]; | 596 | forType: NSPasteboardTypeFileURL]; |
| 597 | #else | ||
| 598 | [pasteboard setString: [NSString stringWithLispString: data] | ||
| 599 | forType: NSFilenamesPboardType]; | ||
| 600 | #endif | ||
| 595 | } | 601 | } |
| 596 | else | 602 | else |
| 597 | signal_error ("Unknown pasteboard type", type); | 603 | signal_error ("Unknown pasteboard type", type); |