<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTabViewController/selectedTabViewItemIndex",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTabViewController(py)selectedTabViewItemIndex"
  },
  "title" : "selectedTabViewItemIndex"
}
-->

# selectedTabViewItemIndex

The index of the selected tab.

```
var selectedTabViewItemIndex: Int { get set }
```

## Discussion

Use this property to get and set the selected tab. The property is key-value coding compliant and can be the target of bindings.

---

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)