<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTabViewDelegate/tabView(_:didSelect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTabViewDelegate(im)tabView:didSelectTabViewItem:"
  },
  "title" : "tabView(_:didSelect:)"
}
-->

# tabView(_:didSelect:)

Informs the delegate that `tabView` has selected `tabViewItem`.

```
@MainActor optional func tabView(_ tabView: NSTabView, didSelect tabViewItem: NSTabViewItem?)
```

## Parameters

`tabView`

The tab view that sent the request.

`tabViewItem`

The tab view item that was 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)