1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 14:56:55 +00:00
mpv/video/out/cocoa-cb
Akemi 716b871928 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.
2019-04-02 02:04:31 +03:00
..
events_view.swift cocoa-cb: add support for dragging certain strings onto the window 2019-04-02 02:04:31 +03:00
video_layer.swift cocoa-cb: synchronise the flush with the render 2019-04-02 02:02:02 +03:00
window.swift cocoa-cb: fix a Cocoa window position on init bug 2019-04-02 02:01:02 +03:00