X-Git-Url: http://git.ithinksw.org/ITFoundation.git/blobdiff_plain/f53b25adbb0e87abd41713a586d3c723ebeb8ff0..d507320b5f6481480f7e0374e5e6a71b8fbdcb34:/ITByteStream.m?ds=inline diff --git a/ITByteStream.m b/ITByteStream.m index 3a878f3..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