<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSExtensionItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSExtensionItem"
  },
  "title" : "NSExtensionItem"
}
-->

# NSExtensionItem

An immutable collection of values representing different aspects of an item for an extension to act upon.

```
class NSExtensionItem
```

## Topics

### Identifying the Item

[`attributedTitle`](/documentation/Foundation/NSExtensionItem/attributedTitle)

An optional title for the item.

[`userInfo`](/documentation/Foundation/NSExtensionItem/userInfo)

An optional dictionary of keys and values corresponding to the extension item’s properties.

### Item Contents

[`attachments`](/documentation/Foundation/NSExtensionItem/attachments)

An optional array of media data associated with the extension item.

[`attributedContentText`](/documentation/Foundation/NSExtensionItem/attributedContentText)

An optional string describing the extension item content.

### Constants

[Property Keys](/documentation/Foundation/property-keys)

These keys correspond to the extension item properties and are specified in the extension’s `Info.plist`.

[UTI Subtypes for Data Detector Types](/documentation/Foundation/uti-subtypes-for-data-detector-types)

These constants represent sub-Uniform Type Identifier of `com.apple.structured-text`

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)