What Do You Get When You Drag and Drop a PNG File From Finder Into an NSTextView?
In short: Image file drag and drop does only produce file URLs, either with security scope-able bookmarks or plain file paths. Dragging an image file from Finder onto an NSTextView
will trigger performDragOperation(_:)
. You get access to NSDraggingInfo
there and can inspect available content. Its draggingPasteboard
(shortened to pb
here) contains the following data when executed on macOS 12 Monterey: