Re: Having a weird error with NSStreams

2009-09-15 Thread Development
By the way I realize that I was just asking about bluetooth, This app has both bluetooth and wifi sharing. pretty standard feature set I suppose. I did simi solve the problem I've been having with this by turning off the send and receive structure. In other words when a session starts it do

Re: Having a weird error with NSStreams

2009-09-15 Thread Jens Alfke
On Sep 15, 2009, at 2:36 PM, Development wrote: while (0 < remainingToWrite) { int actuallyWritten = 0; actuallyWritten = [_outStream write:marker maxLength:remainingToWrite]; remainingToWrite -= actuallyWritten; marker += actuallyWritten;

Having a weird error with NSStreams

2009-09-15 Thread Development
Ok I have reused this code a million times and never had a problem until now. I'm attempting to send an NSDictionary from one iPhone to another. Actually an iPod to the simulator. And one of two things happens. Either the data is totally muxed Meaning sent completely out of order OR it s