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: Nicko van Someren <email@hidden>
- Date: Mon, 10 May 2004 18:01:27 +0100
On 10 May 2004, at 17:18, Ondra Cada wrote:
On 10.5.2004, at 17:57, Robert Goldsmith wrote:
I want to monitor input on a raw serial port - something I would use
select for under c. However, has anyone any suggestions on how I can
do
it using the event system in a gui objc app?
That's what NSFileHandle and its readInBackground... methods are for, I
guess.
Those look very useful; I'd not noticed them before. Do you know how
they work? In particular, are they somehow directly wired into the
Mach kernel, do they do some nasty polling, do they spawn a new thread
or do they do something with asynchronous file operations?
Cheers,
Nicko
_______________________________________________
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.