# `TabBarControlDelegate tabView:menuForTabItem:`

*Instance Method*

## Declaration

```swift
optional func tabView(_ aContentView: NSView, menuForTabItem tabItem: NSViewController) -> NSMenu
```

```objc
- (NSMenu *) tabView:(NSView *) aContentView menuForTabItem:(NSViewController *) tabItem;
```

```python
tabView_menuForTabItem_(aContentView: NSView, tabItem: NSViewController) -> NSMenu
```

