diff options
author | Akemi <der.richter@gmx.de> | 2018-06-03 00:30:57 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-04-02 02:04:31 +0300 |
commit | 716b8719288321c3eb145c97f11ade24373edcdd (patch) | |
tree | db2cb9f5cd7e7ca414116b709468913724732860 /ci | |
parent | 3f6be8335001faac76789691f5b63e3a869d9e53 (diff) | |
download | mpv-716b8719288321c3eb145c97f11ade24373edcdd.tar.bz2 mpv-716b8719288321c3eb145c97f11ade24373edcdd.tar.xz |
cocoa-cb: add support for dragging certain strings onto the window
only the dragged types NSFilenamesPboardType and NSURLPboardType were
supported to be dropped on the window, which was inconsistent with the
dragged types the dock icon supports. the dock icon additional supports
strings that represents an URL or a path. the system takes care of
validating the strings properly in the case of the dock icon, but in the
case of dropping on the window it needs to be done manually.
support for strings is added by also allowing the NSPasteboardTypeString
type and manually validating the strings. strings are split by new lines
and trimmed, to also support a list of URLs and paths. every new element
is checked if being an URL or path and only then being added to the
playlist.
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions