From c3ec70ee0016f42b3e578724c929423046b0082c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 10 Sep 2010 13:01:29 +0000 Subject: =?UTF-8?q?=E2=80=A2=20TableStructure=20-=20fixed=20monoSpacedFont?= =?UTF-8?q?=20for=20index=20table=20refresh=20and=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableStructure.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index 3dab7d92..f6af3b5a 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -81,6 +81,7 @@ // Set the strutcture and index view's font [tableSourceView setFont:([prefs boolForKey:SPUseMonospacedFonts]) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; + [indexesTableView setFont:([prefs boolForKey:SPUseMonospacedFonts]) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; typeSuggestions = [[NSArray arrayWithObjects: @"TINYINT", @@ -1069,12 +1070,11 @@ closes the keySheet BOOL useMonospacedFont = [[change objectForKey:NSKeyValueChangeNewKey] boolValue]; - for (NSTableColumn *fieldColumn in [tableSourceView tableColumns]) - { - [[fieldColumn dataCell] setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; - } + [tableSourceView setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; + [indexesTableView setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; [tableSourceView reloadData]; + [indexesTableView reloadData]; } } -- cgit v1.2.3