Re: Asynchronous I/O using NSFileHandle
Re: Asynchronous I/O using NSFileHandle
- Subject: Re: Asynchronous I/O using NSFileHandle
- From: Robert Goldsmith <email@hidden>
- Date: Sat, 27 Jul 2002 12:53:45 +0100
On Friday, July 26, 2002, at 03:17 pm, Gregor Nobis wrote:
>
Does anyone know of a way to do asynchronous I/O using
>
NSFileHandle? The documentation only mentions methods for reading
>
in background and it seems there is no non-blocking method for
>
writing. Am I missing something here?
>
>
Any help is greatly appreciated,
I couldn't find anything so simply put all the i/o code in a
thread. After all, although you want to get on with other things
you would have no need of trying two i/o's on the same device at
the same time. When the thread goes into or comes out of a
blocking state (read or write) it informs the rest of the app.
Does anyone know of a better way?
As I have interface code etc. as well, I loose no performance
using threads. If you code is not threaded to start with, this
could slow it down a little - esp. when the thread first starts
up.
Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk/RSGoldsmith.asc
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig; charset=US-ASCII]
_______________________________________________
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.