git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upped timeout to 100 ticks...
[ITFoundation.git]
/
ITByteStream.m
diff --git
a/ITByteStream.m
b/ITByteStream.m
index
b5554e1
..
664e1a0
100755
(executable)
--- a/
ITByteStream.m
+++ b/
ITByteStream.m
@@
-53,10
+53,17
@@
[super dealloc];
}
[super dealloc];
}
--
(void) setDelegate:(id <ITByteStreamDelegate
>)d
+-
setDelegate:(id <DataReciever
>)d
{
{
+ id old = delegate;
[delegate release];
delegate = [d retain];
[delegate release];
delegate = [d retain];
+ return old;
+}
+
+-delegate
+{
+ return delegate;
}
-(int) availableDataLength
}
-(int) availableDataLength
@@
-97,7
+104,7
@@
[delegate newDataAdded:self];
}
[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];
{
[lock lock];
[data appendBytes:b length:length];