Skip to content

Instantly share code, notes, and snippets.

@eira-fransham
Created May 20, 2026 08:45
Show Gist options
  • Select an option

  • Save eira-fransham/7de2b3d21fb447970f07d4166d655631 to your computer and use it in GitHub Desktop.

Select an option

Save eira-fransham/7de2b3d21fb447970f07d4166d655631 to your computer and use it in GitHub Desktop.
Cross-platform formats for drag-and-drop/clipboard

Wayland/X11

All formats supported (arbitrary MIME type)

macOS

  • URL
  • Color
  • File contents (for example, a file handle)
  • File URL (i.e. a path)
  • Find panel search options
  • Font
  • Html
  • Multiple text selection (i.e. array of strings)
  • PDF
  • PNG
  • RTF
  • RTFD
  • Ruler
  • Audio (supported formats only given by this outdated documentation, but seems to be transferred using NSAudio)
  • Plaintext
  • TSV
  • Find panel metadata property list
  • TIFF

Documentation

Windows

Built-in

  • Application URI
  • BMP
  • HTML
  • RTF
  • Iterator of IStorageItem (i.e. array of paths plus file metadata)
  • Plaintext
  • URL (i.e. http:///https:// URI)

String-based but standardised

Documentation (DataPackage) Documentation (StandardDataFormats)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment