My Pasteboard Viewer app is now also available for iOS and visionOS (compatibility mode)

It's a developer utility that lets you inspect the system pasteboard

https://github.com/sindresorhus/Pasteboard-Viewer

GitHub - sindresorhus/Pasteboard-Viewer: ๐Ÿ“‹ Inspect the system pasteboards on macOS

๐Ÿ“‹ Inspect the system pasteboards on macOS. Contribute to sindresorhus/Pasteboard-Viewer development by creating an account on GitHub.

GitHub
@sindresorhus Great! This is a real no-brainer app. But for some reason I stopped at a Mac CLI tool that prints the pasteboard metadata to the console. That could've been an app!! :D
@ctietze @sindresorhus gave it the finishing touches for an actual release ๐Ÿ‘ but a similar app is actually available as an example app by Apple since like forever: https://developer.apple.com/library/archive/samplecode/ClipboardViewer/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008825-Intro-DontLinkElementID_2
ClipboardViewer

This small application shows the contents of any clipboard.

@helge That is technically a correct remark that the sample code exists (the README points that out, too), but in comparison @sindresorhus's app is not useless, so it's hardly relevant :)

After tweaking the settings to make it compile, you can inspect images as strings. ๐Ÿคทโ€โ™‚๏ธ

@helge Sorry, I probably mis-read the tone of your reply as condescending, a "yes nicely done, BUT", with the but-part implying "it's not that useful/new/...".
@ctietze @sindresorhus Sorry, useless? The example app is extraordinarily useful if you do Cocoa development. It should have shipped as one of the dev tools!
(I agree that Sindreโ€™s app is the better modern replacement)
@helge Agreed that they should have shipped a build tool that does what the sample app does, and then some, because this is such an important topic on the Mac. @sindresorhus
@ctietze @sindresorhus I thought it may have shipped with YellowBox for Windows already, but doesn't look like. So instead, a picture of the BusyBox.app example ๐Ÿฎ

@sindresorhus One suggestion: Working with image and file data on the clipboard, I found that the modern UTI types wouldn't always match 1:1 the old "deprecated" stuff you mention in the readme:

> It hides obsolete system pasteboard types that have modern equivalents. This includes CorePasteboardFlavorType, NSStringPboardType, NSFilenamesPboardType, etc.

I'll bookmark this to maybe add an option to toggle hide/show deprecated types, but I actually found these to be the most valuable!