diff options
Diffstat (limited to 'copypasta/src/macos.rs')
-rw-r--r-- | copypasta/src/macos.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/copypasta/src/macos.rs b/copypasta/src/macos.rs new file mode 100644 index 00000000..5ef7630e --- /dev/null +++ b/copypasta/src/macos.rs @@ -0,0 +1,19 @@ +//! Clipboard access on macOS +//! +//! Implemented according to https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbReading.html#//apple_ref/doc/uid/TP40008123-SW1 +//! +//! FIXME implement this :) + +struct Clipboard; + +impl Load for Clipboard { + type Err = (); + + fn new() -> Result<Self, Error> { + Ok(Clipboard) + } + + fn load_primary(&self) -> Result<String, Self::Err> { + Ok(String::new()) + } +} |