diff options
author | rowanbeentje <rowan@beent.je> | 2010-07-05 23:51:49 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-07-05 23:51:49 +0000 |
commit | 6ee0e168a8fd9d43cecc097d38cefa60b44af6ae (patch) | |
tree | d20b13695c6eea15e22afcbd15c959f2b9a03f18 | |
parent | 653c05d033c158a1120cecaf368a0f619828924a (diff) | |
download | sequelpro-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
-rw-r--r-- | Source/DMLocalizedNibBundle.m | 3 |
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]; } |