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

# tabView(_:willSelect:)

Informs the delegate that `tabView` is about to select `tabViewItem`.

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

## Parameters

`tabView`

The tab view that sent the request.

`tabViewItem`

The tab view item that is about to be 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)