Re: non-blocking file writes
Re: non-blocking file writes
- Subject: Re: non-blocking file writes
- From: Cameron Hayne <email@hidden>
- Date: Tue, 08 Jul 2003 13:46:09 -0400
On 8/7/03 9:08 AM, "Devon E Bowen" <email@hidden> wrote:
>
The UNIX select() call allows you to wait
>
for readability or writeability of any file descriptor. Seems strange to me
>
that this functionality gets lost in the Cocoa event loop.
Note that you are not required to use the Cocoa-level file handling. You can
use CoreFoundation methods or even the usual BSD system calls.
You might be interested in my sample program "TestEvent"
(
http://hayne.net/MacDev/TestEvent/ )
which illustrates how to break up the opaque NSApplicationMain function into
its component parts in order to gain more control over the handling of
events in a Cocoa program. It does BSD-level socket handling.
But please do file that bug report about the missing Cocoa functionality. It
would be nice to be able to do it all in Cocoa.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.