More work on ITAppleEventTools and also fix a compiler warning
[ITFoundation.git] / ITByteStream.m
index 3a878f3..664e1a0 100755 (executable)
     [super dealloc];
 }
 
--(void) setDelegate:(id <ITByteStreamDelegate>)d
+-setDelegate:(id <DataReciever>)d
 {
+    id old = delegate;
     [delegate release];
     delegate = [d retain];
+    return old;
+}
+
+-delegate
+{
+    return delegate;
 }
 
 -(int) availableDataLength