# `TabBarControlDelegate tabBar:closeWindowForLastTabItem:`

*Instance Method*

## Declaration

```swift
optional func tabBar(_ tabBarControl: GSTabBarControl, closeWindowForLastTabItem tabItem: NSViewController)
```

```objc
- (void) tabBar:(GSTabBarControl *) tabBarControl closeWindowForLastTabItem:(NSViewController *) tabItem;
```

```python
tabBar_closeWindowForLastTabItem_(tabBarControl: GSTabBarControl, tabItem: NSViewController)
```

