aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-05 23:51:49 +0000
committerrowanbeentje <rowan@beent.je>2010-07-05 23:51:49 +0000
commit6ee0e168a8fd9d43cecc097d38cefa60b44af6ae (patch)
treed20b13695c6eea15e22afcbd15c959f2b9a03f18 /Source
parent653c05d033c158a1120cecaf368a0f619828924a (diff)
downloadsequelpro-6ee0e168a8fd9d43cecc097d38cefa60b44af6ae.tar.gz
sequelpro-6ee0e168a8fd9d43cecc097d38cefa60b44af6ae.tar.bz2
sequelpro-6ee0e168a8fd9d43cecc097d38cefa60b44af6ae.zip
- Fix compatibility with <10.6 by checking whether NSTabViewItems support tooltips before amending. This addresses http://spbug.com/l/1052
Diffstat (limited to 'Source')
-rw-r--r--Source/DMLocalizedNibBundle.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/DMLocalizedNibBundle.m b/Source/DMLocalizedNibBundle.m
index 8b5b389a..247b09a8 100644
--- a/Source/DMLocalizedNibBundle.m
+++ b/Source/DMLocalizedNibBundle.m
@@ -202,7 +202,8 @@ static NSMutableArray *deliciousBindingKeys = nil;
NSTabView *tabView = (NSTabView *)view;
for (NSTabViewItem *tabViewItem in [tabView tabViewItems]) {
[self _localizeLabelOfObject:tabViewItem table:table];
- [self _localizeToolTipOfObject:tabViewItem table:table];
+ if ([tabView respondsToSelector:@selector(toolTip)]) // 10.6+
+ [self _localizeToolTipOfObject:tabViewItem table:table];
[self _localizeStringsInObject:[tabViewItem view] table:table];
}