Re: use of c select() style events with the objc run loop
Re: use of c select() style events with the objc run loop
- Subject: Re: use of c select() style events with the objc run loop
- From: Robert Goldsmith <email@hidden>
- Date: Mon, 10 May 2004 20:13:11 +0100
Thanks all for your suggestions :)
On the one hand, NSFileHandle does do most of what I want and is simple
to use. On the other, it creates and destroys a new thread every time
you want to do a background read - which does not sound so fun. It
would seem more sensible if I do have to spawn a new thread to just
create a thread that does all reading and writing to the serial port
and let it block. I had thought to avoid that, though, because almost
all the serial traffic is just a couple of bytes back and forward and
the whole thread spawning/thread communications/gui non-thread-safety
thing just seemed like more effort than needed.
I would have liked to had a closer look at CFSocket but I am tight for
time on this work so I suspect I will just use the NSFileHandle stuff
unless it becomes a pain :)
thanks again :)
Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk/
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.