X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/af1fcfcf8c78f03127d3929b49330cc191259487..5096b69ba044666162286ecee6689fdc1ecff6b3:/ITByteStream.m?ds=inline diff --git a/ITByteStream.m b/ITByteStream.m index b5554e1..664e1a0 100755 --- a/ITByteStream.m +++ b/ITByteStream.m @@ -53,10 +53,17 @@ [super dealloc]; } --(void) setDelegate:(id )d +-setDelegate:(id )d { + id old = delegate; [delegate release]; delegate = [d retain]; + return old; +} + +-delegate +{ + return delegate; } -(int) availableDataLength @@ -97,7 +104,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];