<!--
{
  "availability" : [
    "macOS: 10.12.2 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrubber/insertItems(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrubber(im)insertItemsAtIndexes:"
  },
  "title" : "insertItems(at:)"
}
-->

# insertItems(at:)

Inserts new items at the specified indexes into the scrubber.

```
func insertItems(at indexes: IndexSet)
```

## Parameters

`indexes`

An index set (<doc://com.apple.documentation/documentation/Foundation/IndexSet>) of the indexes of the items to insert.

## Discussion

The scrubber requests the view for each index from its data source.

---

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)