<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nspasteboard-detection-metadata-types",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Pasteboard detection metadata types"
}
-->

# Pasteboard detection metadata types

Common types of metadata that the data detection system matches for a pasteboard.

## Topics

### Accessing metadata

[`var metadataTypes: Set<PartialKeyPath<NSPasteboard.DetectedMetadata>>`](/documentation/AppKit/NSPasteboard/DetectedMetadata/metadataTypes)

A set of key paths that represent metadata types that the data detection system identifies.

[`var contentType: UTType?`](/documentation/AppKit/NSPasteboard/DetectedMetadata/contentType)

The content type of a file that the data detection system identifies when the pasteboard contains a file URL.

[`typedef NSString * NSPasteboardMetadataType;`](/documentation/AppKit/NSPasteboardMetadataType)

A metadata type to detect on the pasteboard.

[`extern NSPasteboardMetadataType const NSPasteboardMetadataTypeContentType;`](/documentation/AppKit/NSPasteboardMetadataTypeContentType)

A metadata type that returns the content type if the pasteboard detects a reference to a file.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)