<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPasteboard/DetectedMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "s:So12NSPasteboardC6AppKitE16DetectedMetadataV"
  },
  "title" : "NSPasteboard.DetectedMetadata"
}
-->

# NSPasteboard.DetectedMetadata

An object that contains common types of metadata that the data detection system matches for a pasteboard.

```
struct DetectedMetadata
```

## 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.



---

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)