<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKImageBrowserView/setSelectionIndexes(_:byExtendingSelection:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)IKImageBrowserView(im)setSelectionIndexes:byExtendingSelection:"
  },
  "title" : "setSelectionIndexes(_:byExtendingSelection:)"
}
-->

# setSelectionIndexes(_:byExtendingSelection:)

Selects cells at the specified indexes.

```
func setSelectionIndexes(_ indexes: IndexSet!, byExtendingSelection extendSelection: Bool)
```

## Parameters

`indexes`

The indexes of the cells you want to select.

`extendSelection`

A `BOOL` value that specifies whether to extend the current selection. Pass <doc://com.apple.documentation/documentation/Swift/true> to extends the selection; <doc://com.apple.documentation/documentation/Swift/false> replaces the current selection.

---

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)