From afbd3852fa962b3b4399b83ba33295c7621d04a8 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 9 May 2012 15:19:40 +0000 Subject: Fix more gcc warnings. --- Source/SPPreferenceController.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/SPPreferenceController.m') diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 01d39e25..78cb0b9b 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -71,7 +71,7 @@ { [self _setupToolbar]; - [generalPreferencePane updateDefaultFavoritePopup]; + [(SPGeneralPreferencePane *)generalPreferencePane updateDefaultFavoritePopup]; preferencePanes = [[NSArray alloc] initWithObjects: generalPreferencePane, @@ -121,7 +121,7 @@ [toolbar setSelectedItemIdentifier:[tablesPreferencePane preferencePaneIdentifier]]; - [tablesPreferencePane updateDisplayedTableFontName]; + [(SPTablesPreferencePane *)tablesPreferencePane updateDisplayedTableFontName]; [self _resizeWindowForContentView:[tablesPreferencePane preferencePaneView]]; } @@ -131,15 +131,15 @@ */ - (IBAction)displayEditorPreferences:(id)sender { - [editorPreferencePane updateColorSchemeSelectionMenu]; - [editorPreferencePane updateDisplayColorThemeName]; + [(SPEditorPreferencePane *)editorPreferencePane updateColorSchemeSelectionMenu]; + [(SPEditorPreferencePane *)editorPreferencePane updateDisplayColorThemeName]; [[self window] setMinSize:NSMakeSize(0, 0)]; [[self window] setShowsResizeIndicator:[editorPreferencePane preferencePaneAllowsResizing]]; [toolbar setSelectedItemIdentifier:[editorPreferencePane preferencePaneIdentifier]]; - [editorPreferencePane updateDisplayedEditorFontName]; + [(SPEditorPreferencePane *)editorPreferencePane updateDisplayedEditorFontName]; [self _resizeWindowForContentView:[editorPreferencePane preferencePaneView]]; } @@ -164,14 +164,14 @@ [prefs setObject:[NSArchiver archivedDataWithRootObject:font] forKey:SPGlobalResultTableFont]; - [tablesPreferencePane updateDisplayedTableFontName]; + [(SPTablesPreferencePane *)tablesPreferencePane updateDisplayedTableFontName]; break; case 2: font = [[NSFontPanel sharedFontPanel] panelConvertFont:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorFont]]]; [prefs setObject:[NSArchiver archivedDataWithRootObject:font] forKey:SPCustomQueryEditorFont]; - [editorPreferencePane updateDisplayedEditorFontName]; + [(SPEditorPreferencePane *)editorPreferencePane updateDisplayedEditorFontName]; break; } } -- cgit v1.2.3