aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.h (renamed from Source/MainController.h)4
-rw-r--r--Source/SPAppController.m (renamed from Source/MainController.m)14
-rw-r--r--Source/SPConnectionController.m2
-rw-r--r--Source/SPFieldEditorController.m2
-rw-r--r--Source/TableDocument.m4
5 files changed, 13 insertions, 13 deletions
diff --git a/Source/MainController.h b/Source/SPAppController.h
index 86ec9e4a..af4a2df4 100644
--- a/Source/MainController.h
+++ b/Source/SPAppController.h
@@ -1,7 +1,7 @@
//
// $Id$
//
-// MainController.h
+// SPAppController.h
// sequel-pro
//
// Created by lorenz textor (lorenz@textor.ch) on Wed May 01 2002.
@@ -27,7 +27,7 @@
@class SPPreferenceController;
-@interface MainController : NSObject
+@interface SPAppController : NSObject
{
BOOL isNewFavorite;
diff --git a/Source/MainController.m b/Source/SPAppController.m
index a712e481..9b0bce1d 100644
--- a/Source/MainController.m
+++ b/Source/SPAppController.m
@@ -1,7 +1,7 @@
//
// $Id$
//
-// MainController.m
+// SPAppController.m
// sequel-pro
//
// Created by lorenz textor (lorenz@textor.ch) on Wed May 01 2002.
@@ -24,7 +24,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPKeychain.h"
-#import "MainController.h"
+#import "SPAppController.h"
#import "TableDocument.h"
#import "SPPreferenceController.h"
@@ -35,7 +35,7 @@
#define SEQUEL_PRO_FAQ_URL @"http://www.sequelpro.com/frequently-asked-questions.html"
#define SEQUEL_PRO_DOCS_URL @"http://www.sequelpro.com/docs"
-@implementation MainController
+@implementation SPAppController
- (id) init
@@ -65,7 +65,7 @@
// return;
TableDocument *firstTableDocument;
- // Manually open a new document, setting MainController as sender to trigger autoconnection
+ // Manually open a new document, setting SPAppController as sender to trigger autoconnection
if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:nil]) {
[firstTableDocument setShouldAutomaticallyConnect:NO];
[firstTableDocument initQueryEditorWithString:[self contentOfFile:filename]];
@@ -110,10 +110,10 @@
prefsController = [[SPPreferenceController alloc] init];
- // Register MainController as services provider
+ // Register SPAppController as services provider
[NSApp setServicesProvider:self];
- // Register MainController for AppleScript events
+ // Register SPAppController for AppleScript events
[[NSScriptExecutionContext sharedScriptExecutionContext] setTopLevelObject:self];
isNewFavorite = NO;
@@ -219,7 +219,7 @@
{
TableDocument *firstTableDocument;
- // Manually open a new document, setting MainController as sender to trigger autoconnection
+ // Manually open a new document, setting SPAppController as sender to trigger autoconnection
if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:nil]) {
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AutoConnectToDefault"]) {
[firstTableDocument setShouldAutomaticallyConnect:YES];
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 67f7e915..34446959 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -24,7 +24,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPConnectionController.h"
-#import "MainController.h"
+#import "SPAppController.h"
#import "SPPreferenceController.h"
#import "ImageAndTextCell.h"
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 253a0436..32b817eb 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -438,7 +438,7 @@
// TODO: No interaction with iChat and iPhoto due to .scriptSuite warning:
- // for superclass of class 'MainController' in suite 'Sequel Pro': 'NSCoreSuite.NSAbstractObject' is not a valid class name.
+ // for superclass of class 'SPAppController' in suite 'Sequel Pro': 'NSCoreSuite.NSAbstractObject' is not a valid class name.
[ql setShowsAddToiPhotoButton:NO];
[ql setShowsiChatTheaterButton:NO];
// Since we are inside of editSheet we have to avoid full-screen zooming
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 8d35f90b..96554663 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -40,7 +40,7 @@
#import "SPDatabaseData.h"
#import "SPStringAdditions.h"
#import "SPArrayAdditions.h"
-#import "MainController.h"
+#import "SPAppController.h"
#import "SPExtendedTableInfo.h"
#import "SPConnectionController.h"
#import "SPHistoryController.h"
@@ -1663,7 +1663,7 @@
// return;
TableDocument *firstTableDocument;
- // Manually open a new document, setting MainController as sender to trigger autoconnection
+ // Manually open a new document, setting SPAppController as sender to trigger autoconnection
if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:nil]) {
[firstTableDocument setShouldAutomaticallyConnect:NO];
[firstTableDocument initQueryEditorWithString:content];