• 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: use of c select() style events with the objc run loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of c select() style events with the objc run loop


  • Subject: Re: use of c select() style events with the objc run loop
  • From: Robert Goldsmith <email@hidden>
  • Date: Mon, 10 May 2004 20:13:11 +0100

Thanks all for your suggestions :)

On the one hand, NSFileHandle does do most of what I want and is simple
to use. On the other, it creates and destroys a new thread every time
you want to do a background read - which does not sound so fun. It
would seem more sensible if I do have to spawn a new thread to just
create a thread that does all reading and writing to the serial port
and let it block. I had thought to avoid that, though, because almost
all the serial traffic is just a couple of bytes back and forward and
the whole thread spawning/thread communications/gui non-thread-safety
thing just seemed like more effort than needed.

I would have liked to had a closer look at CFSocket but I am tight for
time on this work so I suspect I will just use the NSFileHandle stuff
unless it becomes a pain :)

thanks again :)

Robert

---
GnuPG public key:
http://www.Far-Blue.co.uk/

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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: use of c select() style events with the objc run loop
      • From: Andreas Mayer <email@hidden>
References: 
 >use of c select() style events with the objc run loop (From: Robert Goldsmith <email@hidden>)
 >Re: use of c select() style events with the objc run loop (From: Nicko van Someren <email@hidden>)
 >Re: use of c select() style events with the objc run loop (From: j o a r <email@hidden>)
 >Re: use of c select() style events with the objc run loop (From: Nicko van Someren <email@hidden>)
 >Re: use of c select() style events with the objc run loop (From: j o a r <email@hidden>)

  • Prev by Date: Re: Handling NSMenuItem Selections
  • Next by Date: Re: Callbacks, GUI updates and threading
  • Previous by thread: Re: use of c select() style events with the objc run loop
  • Next by thread: Re: use of c select() style events with the objc run loop
  • Index(es):
    • Date
    • Thread