aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-30 22:29:34 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-30 22:29:34 +0000
commit890247960876e8dd987dd44ec98da4300b6a0fd3 (patch)
treefe077fbf95d6599c88dc2c2f34494665452a32ef /Source/SPTableView.m
parenta776a6437e40837cc2e20a9231e3eb8ef1a73ddf (diff)
downloadsequelpro-890247960876e8dd987dd44ec98da4300b6a0fd3.tar.gz
sequelpro-890247960876e8dd987dd44ec98da4300b6a0fd3.tar.bz2
sequelpro-890247960876e8dd987dd44ec98da4300b6a0fd3.zip
• CMTextView's colours are set via observer, live changed in editable textviews
• added Preference setting "Table font" in "Table" pane to set the table font/size for all result tables (Content, Custom Query) • added to SPTableView the method setFont: • fixed the initialisation of vars in CMTextView (fixes the displaying of create syntax)
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r--Source/SPTableView.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index 753996fb..0a1592ca 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -97,4 +97,15 @@
}
+- (void)setFont:(NSFont *)font;
+{
+ NSArray *tableColumns;
+ NSUInteger columnIndex;
+
+ tableColumns = [self tableColumns];
+ columnIndex = [tableColumns count];
+ while (columnIndex--)
+ [[(NSTableColumn *)[tableColumns objectAtIndex:columnIndex] dataCell] setFont:font];
+}
+
@end