diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-10-13 10:14:59 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-10-13 10:14:59 +0000 |
commit | a2a954c933d261e0cb9a0b4eca0d0d1f42902e81 (patch) | |
tree | 452e1800e3c8e399add416ed608e3f9e1874a2ba | |
parent | 9fc4f973499e8d3bf327f699cd0e18d7e640a54d (diff) | |
download | sequelpro-a2a954c933d261e0cb9a0b4eca0d0d1f42902e81.tar.gz sequelpro-a2a954c933d261e0cb9a0b4eca0d0d1f42902e81.tar.bz2 sequelpro-a2a954c933d261e0cb9a0b4eca0d0d1f42902e81.zip |
• Sequel Pro now understands the AppleScript command 'quit' correctly
- this fixed issue 434
-rw-r--r-- | Resources/sequel-pro.scriptSuite | 6 | ||||
-rw-r--r-- | Resources/sequel-pro.scriptTerminology | 4 | ||||
-rw-r--r-- | Source/SPAppController.h | 4 | ||||
-rw-r--r-- | Source/SPAppController.m | 4 |
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; } |