<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSharingServicePickerTouchBarItemDelegate/items(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSSharingServicePickerTouchBarItemDelegate(im)itemsForSharingServicePickerTouchBarItem:"
  },
  "title" : "items(for:)"
}
-->

# items(for:)

Asks the delegate for items that represent the objects to be shared.

```
@MainActor func items(for pickerTouchBarItem: NSSharingServicePickerTouchBarItem) -> [Any]
```

## Parameters

`pickerTouchBarItem`

The sharing service picker item that is requesting the items to be shared.

## Return Value

An array of items that represents the objects to be shared. Each element of the array must either conform to the [`NSPasteboardWriting`](/documentation/AppKit/NSPasteboardWriting) protocol, or be an <doc://com.apple.documentation/documentation/Foundation/NSItemProvider>.

---

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)