non-blocking file writes
non-blocking file writes
- Subject: non-blocking file writes
- From: Devon E Bowen <email@hidden>
- Date: Mon, 7 Jul 2003 10:40:07 -0400 (EDT)
I'm a UNIX guy but with little Cocoa experience. I'm looking for a way
to read and write data (ints, chars, etc) to a file. Sounds simple
enough but I want to do it in a way that guarantees non-blocking I/O.
I poked around through the docs and ran across NSFileHandle which seems
to support methods for non-blocking reads (readInBackgroundAndNotify)
but not for writes.
So the question is... is there a better way to do this? Maybe another
class I should be looking at? It seems like this is a pretty basic
thing to want to do, no? Or do Cocoa programmers usually assume that
writes will always work quickly enough to not worry about it? That would
seem like bad coding style to me. Personally, I would prefer never to
see that little beach ball spinning in my code.
Any help or tips are appreciated...
Devon
_______________________________________________
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.