---
title: "select(_:byExtendingSelection:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikcameradeviceview/select(_:byextendingselection:)"
---

# select(_:byExtendingSelection:)

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

## Declaration

```swift
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.

## See Also

### Selection Management

- [selectedIndexes()](quartz/ikcameradeviceview/selectedindexes().md)
