# `TabBarControlDelegate shouldAllowTabItem:toLeaveTabBar:`

*Instance Method*

## Declaration

```swift
optional func shouldAllowTabItem(_ tabItem: NSViewController, toLeaveTabBar tabBarControl: GSTabBarControl) -> Bool
```

```objc
- (BOOL) shouldAllowTabItem:(NSViewController *) tabItem toLeaveTabBar:(GSTabBarControl *) tabBarControl;
```

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

