<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionView/item(at:)-80xze",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionView(im)itemAtIndex:"
  },
  "title" : "item(at:)"
}
-->

# item(at:)

Returns the collection view item for the represented object at the specified index.

```
func item(at index: Int) -> NSCollectionViewItem?
```

## Parameters

`index`

The index of the collection view item.

## Return Value

An instance of `NSCollectionViewItem`.

## Discussion

Rather than using the [`NSCollectionViewItem`](/documentation/AppKit/NSCollectionViewItem) instance returned by this method to determine the frame of the collection item’s view you should use [`content`](/documentation/AppKit/NSCollectionView/content), it is significantly more efficient.

---

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)