LLMpediaThe first transparent, open encyclopedia generated by LLMs

Pasteboard (macOS)

Generated by GPT-5-mini
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Parent: TextEdit Hop 4
Expansion Funnel Raw 60 → Dedup 0 → NER 0 → Enqueued 0
1. Extracted60
2. After dedup0 (None)
3. After NER0 ()
4. Enqueued0 ()
Pasteboard (macOS)
NamePasteboard
DeveloperApple Inc.
Operating systemmacOS
Platformx86-64; ARM64
Initial release2001
Latest release2026
Genreclipboard (computing)
LicenseProprietary software

Pasteboard (macOS) is the system-wide clipboard service provided by Apple Inc. in macOS that enables copy–paste and drag-and-drop data exchange between applications, the Finder, and system services such as Spotlight and Siri. It exposes multiple pasteboard instances, a uniform API in Cocoa and Carbon eras, and integrates with frameworks like AppKit, UIKit for Mac, and CoreServices. The pasteboard underpins user workflows involving Safari, Mail, TextEdit, and third-party apps distributed via the Mac App Store.

Overview

The macOS pasteboard implements an interprocess communication surface that stores named or anonymous clipboard data for short-term transfer among processes such as Finder, Xcode, and Photos. It supports multiple simultaneous pasteboards, change-count tracking used by VoiceOver, and notification semantics relied upon by System Preferences and Notification Center. The service evolved alongside major releases like macOS Panther, macOS Leopard, macOS Yosemite, and macOS Big Sur, and interoperates with subsystems such as NSPasteboard in AppKit and UIPasteboard in UIKit.

Types of Pasteboards

macOS differentiates pasteboards by purpose and scope. The general pasteboard is used by common copy–paste operations across apps such as Pages and Numbers. The find pasteboard is used by search features in apps like Safari and Mail. Drag pasteboards facilitate drag-and-drop interactions between Finder windows and apps like Photos. Additionally, named pasteboards enable app-specific sharing for tools like Xcode extensions and services in Automator.

API and Developer Interfaces

Developers access pasteboard functionality via Objective‑C and Swift APIs exposed in AppKit (NSPasteboard) and UIKit (UIPasteboard), and lower-level APIs in CoreFoundation and CFPasteboard for legacy compatibility. Integration examples include implementing copy and paste in Xcode projects, supporting drag-and-drop with NSDraggingSession and UIDragInteraction, and registering custom pasteboard types for apps like Adobe Photoshop plugins. The APIs provide methods for declaring writable types, reading available types, querying change counts, and scheduling deferred data supply for large objects such as assets handled by Photos.

Data Formats and Serialization

The pasteboard supports standardized uniform type identifiers such as UTType values including public.png, public.jpeg, public.rtf, and public.html used by apps like Safari, Mail, and TextEdit. It also supports custom pasteboard types used by software like Microsoft Word and Adobe Illustrator via serialized representations such as Property Lists, NSCoding archives, and raw binary blobs. Converters and negotiation protocols allow fallbacks between richer formats (e.g., NSAttributedString with RTF and HTML) and simpler formats (e.g., plain text) when recipients like Terminal or Notes request specific UTI forms.

Security and Privacy Considerations

Because pasteboard contents are accessible to all user-space processes, macOS implements privacy controls and API guidance to mitigate risks observed in contexts involving apps from the Mac App Store and third-party utilities. Developers are advised to avoid placing sensitive credentials into the general pasteboard, and to use secure mechanisms such as Keychain Access or encrypted containers provided by CloudKit for persistent secrets. System features like pasteboard change-counting, sandbox entitlements enforced by App Sandbox, and user consent flows introduced in releases like macOS Catalina and macOS Big Sur help limit covert data exfiltration. Security researchers and incident responders working with XProtect-style telemetry often analyze pasteboard misuse in coordination with System Integrity Protection diagnostics.

Use Cases and Integration in macOS Features

The pasteboard is central to typical user tasks: copying text from Safari into Pages, dragging images from Photos into Mail, and transferring URLs between Maps and Messages. It enables features such as Handoff-style handoffs that complement iCloud data sync, supports clipboard history utilities developed by third parties, and underlies system services like Quick Look previews and Services menu actions. Advanced integrations include developer tools in Xcode that copy code snippets with syntax-rich pasteboard types and automation workflows orchestrated by AppleScript and Shortcuts.

Category:macOS