diff options
author | dynaflash <[email protected]> | 2007-06-04 19:55:45 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-06-04 19:55:45 +0000 |
commit | 2106d237262306b1b7680e2a73ef45fa019ba90a (patch) | |
tree | b28067061ffa20942f29b2f43476c80c243031d7 /macosx/HBOutputPanelController.m | |
parent | abd735dd861a116521a84e9c8779073d30f4edaa (diff) |
MacGui: Add stdout to the Debug Inspector window
- thanks again to Cleaner
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@596 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBOutputPanelController.m')
-rw-r--r-- | macosx/HBOutputPanelController.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m index 195498654..b3a8d884e 100644 --- a/macosx/HBOutputPanelController.m +++ b/macosx/HBOutputPanelController.m @@ -26,6 +26,7 @@ { outputTextStorage = [[NSTextStorage alloc] init]; [[HBOutputRedirect stderrRedirect] addListener:self]; + [[HBOutputRedirect stdoutRedirect] addListener:self]; } return self; } @@ -35,7 +36,8 @@ */ - (void)dealloc { - [[HBOutputRedirect stderrRedirect] removeListener:self]; + [[HBOutputRedirect stderrRedirect] removeListener:self]; + [[HBOutputRedirect stdoutRedirect] removeListener:self]; [outputTextStorage release]; [outputPanel release]; [super dealloc]; @@ -73,6 +75,7 @@ [textView scrollRangeToVisible:NSMakeRange([outputTextStorage length], 0)]; } +- (void)stdoutRedirect:(NSString *)text { [self stderrRedirect:text]; } /** * Clears the output window. |