aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-18 09:52:15 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-18 09:52:15 +0000
commitb57ad98e4fc5efca2b96d759936a852e7ee68630 (patch)
treee7f58be5ffa235282d65ea0da9b615da6d0f9377 /Frameworks/PSMTabBar
parentf4957e259b41f2ce4f1eaac6e0f75b82d34995b7 (diff)
downloadsequelpro-b57ad98e4fc5efca2b96d759936a852e7ee68630.tar.gz
sequelpro-b57ad98e4fc5efca2b96d759936a852e7ee68630.tar.bz2
sequelpro-b57ad98e4fc5efca2b96d759936a852e7ee68630.zip
• simplified and unified tab tooltips
• added tooltips for tab's overflow menu
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]]];
}