diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-07 07:34:29 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-07 07:34:29 +0000 |
commit | 8a275a0fa7cd3587a2e8ff910dfb060f51073177 (patch) | |
tree | 8ac99e0e8ab2c91db39127cb814980a3b7245d88 | |
parent | 9694c8e17e09e067964aef42afb6a7ed67e506e0 (diff) | |
download | sequelpro-8a275a0fa7cd3587a2e8ff910dfb060f51073177.tar.gz sequelpro-8a275a0fa7cd3587a2e8ff910dfb060f51073177.tar.bz2 sequelpro-8a275a0fa7cd3587a2e8ff910dfb060f51073177.zip |
• added internal JavaScript function window.system.closeHTMLOutputWindow()
-rw-r--r-- | Source/SPBundleHTMLOutputController.m | 15 |
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 */ |