You have to pass a pointer to the object pointer not the object pointer
itself, i.e &fh not fh, when adding arguments to an invocation. So, the
correct call is:
[invocation setArgument:&fh atIndex:2];
Because objective-c objects' memory layout begin with a pointer to the
object's class, what actua
On Mar 30, 2008, at 3:30 PM, Jeff LaMarche wrote:
[invocation target] performSelector:[invocation selector]
withObject:fh];
Actually, that would be:
[[invocation target] performSelector:[invocation selector]
withObject:con];
missed a bracket when I copied and pasted :)
__
I'm having an unusual problem with an NSFileHandle. I'm creating an
NSFileHandle and initializing it with a file descriptor that's
actually a network socket. I'm able to send and receive data using it
and it works fine. Then, I pass the NSFileHandle instance as the first
argument of an NSIn