Ooops, the framework header was still importing a class that doesn't
[ITFoundation.git] / ITByteStream.m
index b5554e1..e4607b4 100755 (executable)
     [super dealloc];
 }
 
--(void) setDelegate:(id <ITByteStreamDelegate>)d
+-setDelegate:(id <DataReciever>)d
 {
+    id old = delegate;
     [delegate release];
     delegate = [d retain];
+    return old;
 }
 
 -(int) availableDataLength
@@ -97,7 +99,7 @@
     [delegate newDataAdded:self];
 }
 
--(void) writeBytes:(char *)b len:(long)length
+-(void) writeBytes:(in char *)b len:(long)length
 {
     [lock lock];
     [data appendBytes:b length:length];