]> src.bluestatic.org Git - macgdbp.git/commit
Delegate methods work far better than notifications, though I'm not sure how threads...
authorRobert Sesek <rsesek@bluestatic.org>
Fri, 3 Aug 2007 03:49:09 +0000 (20:49 -0700)
committerRobert Sesek <rsesek@bluestatic.org>
Fri, 3 Aug 2007 03:49:09 +0000 (20:49 -0700)
commit7ecc26a4a73a34562e9daa0141194e93b787664c
tree19a1fab582caa83352c84f588a81450516a2a6fb
parent7d3a70ee40ad3f7f8ee28486cc5646e677e34ec8
Delegate methods work far better than notifications, though I'm not sure how threads fit into the mix.

* Source/SocketWrapper.h: Updating the SocketWrapperDelegate informal protocol to use actual arguments instead of NSNotification
* Source/SocketWrapper.m:
(many): Change from using [NSNotificatinoCenter postNotification:] to just calling delegate methods
([SocketWrapper receive]): NSData can't take a pointer to an array, so we copy the buffer into another variable packet[] and send that to NSData
Source/SocketWrapper.h
Source/SocketWrapper.m