Expand description

A wrapper for NSPasteBoard, which is the interface for copy/paste and general transferring (think: drag and drop between applications). It exposes a Rust interface that tries to be complete, but might not cover everything 100% right now - feel free to pull request.

Example

use cacao::pasteboard::Pasteboard;

// Get the default system pasteboard
let pasteboard = Pasteboard::default();

// Copy a piece of text to the clipboard
pasteboard.copy_text("My message here");

Structs

Represents an NSPasteboard, enabling you to handle copy/paste/drag and drop.

Enums

Constants for the standard system pasteboard names.

Represents different Pasteboard types that can be referred to.