• 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: Nicko van Someren <email@hidden>
  • Date: Mon, 10 May 2004 18:38:22 +0100

On 10 May 2004, at 18:20, j o a r wrote:

I think that you should read up on the current documentation...

Yes, I read your posting and then went to look more closely at NSFileHandle. Unfortunately my day job does not involve Macs so I don't really have the luxury of time to read every bit of documentation end to end.

That said, as far as I can tell the the NSFileHandle object and it's notifications do not actually do all of what Robert wanted, since he needs to "transmit typed content from an NSTextView without the serial port routines blocking" and the writeDate: message is synchronous and may still block. To do this we still either need to call select() with a write flag or catch the appropriate kernel event on that file descriptor.

I've still not found a generic way to bridge kernel events into the run loop, only function specific ones like the file handle notifications.

Cheers,
Nicko
_______________________________________________
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: j o a r <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>)

  • Prev by Date: Re: New to Cocca
  • Next by Date: Re: use of c select() style events with the objc run loop
  • 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