aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-31 19:59:23 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-31 19:59:23 +0000
commit7bd741964d607063ca070d1ebde210c37fee56a0 (patch)
treebfc8a47f123f45009d001993accee826028e15bd /Source/CustomQuery.m
parent223dd9139ae61d9319ea5f719a1a08feb63bfeb4 (diff)
downloadsequelpro-7bd741964d607063ca070d1ebde210c37fee56a0.tar.gz
sequelpro-7bd741964d607063ca070d1ebde210c37fee56a0.tar.bz2
sequelpro-7bd741964d607063ca070d1ebde210c37fee56a0.zip
• Content Table and Query Editor table's tooltip are displayed by using the same font/size as the table cells
• CMTextView: make sure that some methods are never called if the CMTextView is set to 'not ediable'
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index fd8af332..d977d7de 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -1820,7 +1820,14 @@
}
// Show the cell string value as tooltip (including line breaks and tabs)
- [SPTooltip showWithObject:[aCell stringValue] atLocation:pos];
+ // by using the cell's font
+ [SPTooltip showWithObject:[aCell stringValue]
+ atLocation:pos
+ ofType:@"text"
+ displayOptions:[NSDictionary dictionaryWithObjectsAndKeys:
+ [[aCell font] familyName], @"fontname",
+ [NSString stringWithFormat:@"%f",[[aCell font] pointSize]], @"fontsize",
+ nil]];
return nil;
}