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

# tabViewDidChangeNumberOfTabViewItems(_:)

Informs the delegate that the number of tab view items in `tabView` has changed.

```
@MainActor optional func tabViewDidChangeNumberOfTabViewItems(_ tabView: NSTabView)
```

## Parameters

`tabView`

The tab view that added or removed tabview items.

## See Also

  [Tab View Programming Topics](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/TabView/TabView.html#//apple_ref/doc/uid/10000074i)

[`numberOfTabViewItems`](/documentation/AppKit/NSTabView/numberOfTabViewItems)

The number of items in the tab view’s array of tab view items.



---

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)