• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Asynchronous I/O using NSFileHandle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Asynchronous I/O using NSFileHandle
      • From: Shawn Erickson <email@hidden>
References: 
 >Asynchronous I/O using NSFileHandle (From: Gregor Nobis <email@hidden>)

  • Prev by Date: Re: about Panels and windows
  • Next by Date: Referencing files in the app's bundle
  • Previous by thread: Asynchronous I/O using NSFileHandle
  • Next by thread: Re: Asynchronous I/O using NSFileHandle
  • Index(es):
    • Date
    • Thread