aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPAppController.m13
-rw-r--r--Source/SPBundleHTMLOutputController.m2
2 files changed, 14 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 67d0427f..d9fe64bb 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -684,6 +684,19 @@
return;
}
+ // If command failed notify the file handle hand shake mechanism
+ NSString *out = @"1";
+ [out writeToFile:[NSString stringWithFormat:@"%@%@", SPURLSchemeQueryResultStatusPathHeader, passedProcessID]
+ atomically:YES
+ encoding:NSUTF8StringEncoding
+ error:nil];
+ out = @"Scheme Error";
+ [out writeToFile:[NSString stringWithFormat:@"%@%@", SPURLSchemeQueryResultPathHeader, passedProcessID]
+ atomically:YES
+ encoding:NSUTF8StringEncoding
+ error:nil];
+
+
if(processDocument)
NSLog(@"process doc ID: %@\n%@", [processDocument processID], [processDocument tabTitleForTooltip]);
else
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m
index 5d3d0ddf..c6129e99 100644
--- a/Source/SPBundleHTMLOutputController.m
+++ b/Source/SPBundleHTMLOutputController.m
@@ -41,7 +41,7 @@
if (self = [super initWithWindowNibName:@"BundleHTMLOutput"]) {
- ;
+ [[self window] setReleasedWhenClosed:YES];
}