<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareControl/setSelectedItems(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B15HardwareControlC16setSelectedItemsyySays6UInt32VGKF"
  },
  "title" : "setSelectedItems(_:)"
}
-->

# setSelectedItems(_:)

Set the selectedItems property.

```
func setSelectedItems(_ items: [UInt32]) throws
```

## Parameters

`items`

An array of UInt32s that are the IDs of the items currently selected.

---

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)