aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/PSMTabBar')
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarController.m b/Frameworks/PSMTabBar/PSMTabBarController.m
index 8f8631b0..76f3a91b 100644
--- a/Frameworks/PSMTabBar/PSMTabBarController.m
+++ b/Frameworks/PSMTabBar/PSMTabBarController.m
@@ -613,7 +613,8 @@ static NSInteger potentialMinimumForArray(NSArray *array, NSInteger minimum)
keyEquivalent:@""];
[menuItem setTarget:_control];
[menuItem setRepresentedObject:[cell representedObject]];
-
+ if([[[cell representedObject] identifier] respondsToSelector:@selector(tabTitleForTooltip)])
+ [menuItem setToolTip:[[[cell representedObject] identifier] tabTitleForTooltip]];
if ([cell count] > 0) {
[menuItem setTitle:[[menuItem title] stringByAppendingFormat:@" (%lu)", (unsigned long)[cell count]]];
}