aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleHTMLOutputController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-07 07:34:29 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-07 07:34:29 +0000
commit8a275a0fa7cd3587a2e8ff910dfb060f51073177 (patch)
tree8ac99e0e8ab2c91db39127cb814980a3b7245d88 /Source/SPBundleHTMLOutputController.m
parent9694c8e17e09e067964aef42afb6a7ed67e506e0 (diff)
downloadsequelpro-8a275a0fa7cd3587a2e8ff910dfb060f51073177.tar.gz
sequelpro-8a275a0fa7cd3587a2e8ff910dfb060f51073177.tar.bz2
sequelpro-8a275a0fa7cd3587a2e8ff910dfb060f51073177.zip
• added internal JavaScript function window.system.closeHTMLOutputWindow()
Diffstat (limited to 'Source/SPBundleHTMLOutputController.m')
-rw-r--r--Source/SPBundleHTMLOutputController.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m
index 7bcff455..57b75889 100644
--- a/Source/SPBundleHTMLOutputController.m
+++ b/Source/SPBundleHTMLOutputController.m
@@ -211,6 +211,7 @@
[self setInitHTMLSourceString:@""];
windowUUID = @"";
docUUID = @"";
+ NSLog(@"close");
[self release];
}
@@ -366,6 +367,8 @@
return @"getShellEnvironmentForName";
if (aSelector == @selector(makeHTMLOutputWindowKeyWindow))
return @"makeHTMLOutputWindowKeyWindow";
+ if (aSelector == @selector(closeHTMLOutputWindow))
+ return @"closeHTMLOutputWindow";
return @"";
}
@@ -379,6 +382,9 @@
if (selector == @selector(makeHTMLOutputWindowKeyWindow)) {
return NO;
}
+ if (selector == @selector(closeHTMLOutputWindow)) {
+ return NO;
+ }
return YES;
}
@@ -441,6 +447,15 @@
}
/**
+ * JavaScript window.system.makeHTMLOutputWindowKeyWindow() function
+ * to make the HTML output window the first responder
+ */
+- (void)closeHTMLOutputWindow
+{
+ [[self window] close];
+}
+
+/**
* JavaScript window.system.run('a_command'|new Array('a_command', 'uuid')) function
* to return the result of the BASH command a_command
*/