Re: NSInputStream event question
Richard Frith-Macdonald <[email protected]> Sun, 28 Jan 2007 06:45:21 +0000
| Newsgroups | gmane.comp.lib.gnustep.user |
|---|---|
| Message-ID | <420AD6AF-79E9-424F-B7F0-338BCBA6CBCD__15830.0669784241$1176670234$gmane$org@tiptree.demon.co.uk> |
On 28 Jan 2007, at 05:16, Tima wrote: > Hi list, > > I've send similar question before, but I'm not sure it did get > through. > Sorry if you see the duplicate. > > I'm learning how to work with NSStreams. I made an application > that uses NSInput/OutputStream pair for local socket. > > Everything works as expected (base-1.13, gui-0.11, Linux) except that > I do not get NSEventErrorOccurred in the case of errors, when the > server > process is stopped, for instance, or there is no socket file. It seems that events are not being sent until after the stream is opened, and since the stream fails to open the event does not get sent. I think this behavior is a bug in the stream code. But I'd like to check the behavior of similar code on MacOS-X to be sure. As a workaround you could check the stream status immediately after the call to -open