aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Resources/sequel-pro.scriptSuite6
-rw-r--r--Resources/sequel-pro.scriptTerminology4
-rw-r--r--Source/SPAppController.h4
-rw-r--r--Source/SPAppController.m4
4 files changed, 9 insertions, 9 deletions
diff --git a/Resources/sequel-pro.scriptSuite b/Resources/sequel-pro.scriptSuite
index 74053c27..e5dcb29f 100644
--- a/Resources/sequel-pro.scriptSuite
+++ b/Resources/sequel-pro.scriptSuite
@@ -3,12 +3,12 @@
"AppleEventCode" = "cmec";
"Classes" = {
- "MainController" = {
- "Superclass" = "NSCoreSuite.NSAbstractObject";
+ "NSApplication" = {
+ "Superclass" = "NSCoreSuite.NSApplication";
"AppleEventCode" = "capp";
"SupportedCommands" = {
"authenticate" = "authenticate:";
- "NSCoreSuite.Quit" = "handleQuitScriptCommand:";
+ "NSCoreSuite.Quit" = "handleQuitScriptCommand:";
};
};
};
diff --git a/Resources/sequel-pro.scriptTerminology b/Resources/sequel-pro.scriptTerminology
index 78ff78dc..a59a137d 100644
--- a/Resources/sequel-pro.scriptTerminology
+++ b/Resources/sequel-pro.scriptTerminology
@@ -1,8 +1,8 @@
{
"Name" = "Sequel Pro suite";
- "Description" = "Suite for handling tunnel management";
+ "Description" = "Sequel Pro specific classes.";
"Classes" = {
- "MainController" = {
+ "NSApplication" = {
"Name" = "application";
"PluralName" = "applications";
"Description" = "Sequel Pro application";
diff --git a/Source/SPAppController.h b/Source/SPAppController.h
index 6a5f9b6a..f22cd1d5 100644
--- a/Source/SPAppController.h
+++ b/Source/SPAppController.h
@@ -52,8 +52,10 @@
// Getters
- (SPPreferenceController *)preferenceController;
-// Other
+// AppleScript handler
- (id)handleQuitScriptCommand:(NSScriptCommand *)command;
+
+// Others
- (NSString *)contentOfFile:(NSString *)aPath;
@end
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index f5023643..e329f796 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -481,13 +481,11 @@
/**
- * What exactly is this for?
+ * AppleScript handler to quit Sequel Pro
*/
- (id)handleQuitScriptCommand:(NSScriptCommand *)command
{
[NSApp terminate:self];
-
- // Suppress warning
return nil;
}