diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-06-18 09:52:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-06-18 09:52:15 +0000 |
commit | b57ad98e4fc5efca2b96d759936a852e7ee68630 (patch) | |
tree | e7f58be5ffa235282d65ea0da9b615da6d0f9377 /Frameworks/PSMTabBar/PSMTabBarController.m | |
parent | f4957e259b41f2ce4f1eaac6e0f75b82d34995b7 (diff) | |
download | sequelpro-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/PSMTabBarController.m')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabBarController.m | 3 |
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]]]; } |