• 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: SIGIO and AppKit main loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SIGIO and AppKit main loop


  • Subject: Re: SIGIO and AppKit main loop
  • From: j o a r <email@hidden>
  • Date: Mon, 29 Mar 2004 15:26:55 +0200

I'm not sure I've understood what this thread is all about, but for run
loop integrated memory / file / network IO, have you checked NSStream
(and / or it's CF counterparts)?

j o a r

On 2004-03-29, at 14.55, Michael Rothwell wrote:

> Cocoa appears to have no equivalent of glib's "IO Channels," which are
> really useful, and do not use threads. GIOChannel integrates with the
> application's main thread and invokes callback functions for registered
> events, such as ready-to-read, ready-to-write, ready-to-accept, etc. I
> imagine it integrates the file descriptor in question with a
> general-purpose select() or poll() done in the main application loop.
>
> It looks like waitForDataInBackgroundAndNotify spawns a thread every
> time it is called, which would be very inefficient for reading large
> amounts of data. In fact, I can't think of any reason to ever use
> waitForDataInBackgroundAndNotify rather than just starting a single
> thread and sending notifications back from it while doing multiple I/O
> operations.
>
> http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-
> add-watch
>
> ... where do I file an enhancement request? :D

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


References: 
 >Re: SIGIO and AppKit main loop (From: Mike Davis <email@hidden>)
 >Re: SIGIO and AppKit main loop (From: John Stiles <email@hidden>)
 >Re: SIGIO and AppKit main loop (From: Michael Rothwell <email@hidden>)
 >Re: SIGIO and AppKit main loop (From: Michael Rothwell <email@hidden>)
 >Re: SIGIO and AppKit main loop (From: Mike Davis <email@hidden>)
 >Re: SIGIO and AppKit main loop (From: Michael Rothwell <email@hidden>)

  • Prev by Date: Re: SIGIO and AppKit main loop
  • Next by Date: Clever way to replace in a NSString
  • Previous by thread: Re: SIGIO and AppKit main loop
  • Next by thread: Re: SIGIO and AppKit main loop
  • Index(es):
    • Date
    • Thread