Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 652 Bytes

mac-clipboard.md

File metadata and controls

22 lines (15 loc) · 652 Bytes

https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbConcepts.html

Mac has 5 standard clipboards

  1. general
  2. ruler
  3. find
  4. font
  5. drag (not accessible by pbcopy and pbpaste)

Clipboard data can be in one of 4 formats

  1. plain text
  2. EPS
  3. RTF
  4. RTFD

(maybe other custom formats possible too - I'm not sure)

A pasteboard can hold multiple representations of the same pasteboard item.

For example, a rich text editor might provide RTFD, RTF, and NSString representations of the copied data. An item that is added to a pasteboard specifies what representations it is able to provide.