{
outputTextStorage = [[NSTextStorage alloc] init];
[[HBOutputRedirect stderrRedirect] addListener:self];
+ [[HBOutputRedirect stdoutRedirect] addListener:self];
}
return self;
}
*/
- (void)dealloc
{
- [[HBOutputRedirect stderrRedirect] removeListener:self];
+ [[HBOutputRedirect stderrRedirect] removeListener:self];
+ [[HBOutputRedirect stdoutRedirect] removeListener:self];
[outputTextStorage release];
[outputPanel release];
[super dealloc];
[textView scrollRangeToVisible:NSMakeRange([outputTextStorage length], 0)];
}
+- (void)stdoutRedirect:(NSString *)text { [self stderrRedirect:text]; }
/**
* Clears the output window.