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

# select(_:byExtendingSelection:)

Invoked to select the specified files, extending the selection if specified.

```
func select(_ indexes: IndexSet!, byExtendingSelection extend: Bool)
```

## Parameters

`indexes`

The indexes of the files to select.

`extend`

<doc://com.apple.documentation/documentation/Swift/true> if the selection should be extended, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

---

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)