# `TabBarControlDelegate tabBar:shouldCloseTabItem:`

*Instance Method*

## Declaration

```swift
func tabBar(_ tabBarControl: GSTabBarControl, shouldCloseTabItem tabItem: NSViewController) -> Bool
```

```objc
- (BOOL) tabBar:(GSTabBarControl *) tabBarControl shouldCloseTabItem:(NSViewController *) tabItem;
```

```python
tabBar_shouldCloseTabItem_(tabBarControl: GSTabBarControl, tabItem: NSViewController) -> bool
```

