sindresorhus / Pasteboard-Viewer

📋 Inspect the system pasteboards on macOS
https://sindresorhus.com/pasteboard-viewer
MIT License
708 stars 35 forks source link

Quick Look #4

Closed sindresorhus closed 4 years ago

sindresorhus commented 4 years ago

There are a lot of formats we don't currently handle and we just show 2423 bytes. Would be nice to try to use Quick Look to show a preview.

I know how to show a Quick Look panel in a separate window, but I'm not sure how to embed a Quick Look view in an existing window. On iOS, there's QLPreviewController, but nothing like that for macOS. Alternatively, if there's no other way, we could generate an image preview instead: https://developer.apple.com/documentation/quicklookthumbnailing

There's https://developer.apple.com/documentation/quartz/qlpreviewview