aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.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/TableContent.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/TableContent.m')
-rw-r--r--Source/TableContent.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 0a397707..d25799d5 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -2612,7 +2612,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;
}