summaryrefslogtreecommitdiffstats
path: root/macosx/HBOutputRedirect.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBOutputRedirect.m')
-rw-r--r--macosx/HBOutputRedirect.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m
index f1ff10e58..7239fe3cd 100644
--- a/macosx/HBOutputRedirect.m
+++ b/macosx/HBOutputRedirect.m
@@ -77,7 +77,7 @@ int stderrwrite(void *inFD, const char *buffer, int size)
* Adds specified object as listener for this output. Method @c stdoutRedirect:
* or @c stderrRedirect: of the listener is called to redirect the output.
*/
-- (void)addListener:(id)aListener
+- (void)addListener:(id <HBOutputRedirectListening>)aListener
{
NSAssert2([aListener respondsToSelector:forwardingSelector], @"Object %@ doesn't respond to selector \"%@\"", aListener, NSStringFromSelector(forwardingSelector));
@@ -94,7 +94,7 @@ int stderrwrite(void *inFD, const char *buffer, int size)
/**
* Stops forwarding for this output to the specified listener object.
*/
-- (void)removeListener:(id)aListener
+- (void)removeListener:(id <HBOutputRedirectListening>)aListener
{
if ([listeners containsObject:aListener])
{
@@ -138,7 +138,6 @@ int stderrwrite(void *inFD, const char *buffer, int size)
forwardingSelector = aSelector;
stream = aStream;
oldWriteFunc = NULL;
- lock = [[NSLock alloc] init];
}
return self;
}