• 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:Modal run loop input sources (Mike Davis)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Modal run loop input sources (Mike Davis)


  • Subject: Re:Modal run loop input sources (Mike Davis)
  • From: "Tony" <email@hidden>
  • Date: Mon, 27 Aug 2001 23:49:52 -0400

"Mike Davis" <email@hidden> wrote on Mon, 27 Aug 2001 11:05:47 -0400

>> while( not_done)
>> {
>> run modal loop;
>> run default app loop for a short time;
>> }

>It's pretty nasty isn't it. You might be aware that blocking calls seem to
>call the application run loop too. You might just do a usleep() or a select
>() (as a timer) for that matter.

I am not sure I understand this. My main thread would go
to sleep and then what? That does not guarantee me that, when I wake up, I
would
be getting needed DO notification if modal loop doesn't check that input
source?!
The way I understand it, I would be sleeping (for a short time) between
modal loop
invocations and that's all.

>Do you have [NSConnection setIndependentConversationQueuing:YES]? If so
>that'd be a problem.

If you can elaborate a bit, I would appreciate it, since documentation
doesn't
seem to help.

Thanks,
Tony


  • Follow-Ups:
    • Sheets having sheets
      • From: Rosyna <email@hidden>
  • Prev by Date: [COCOA] Placing an insertion thingy into a NSTextView
  • Next by Date: Sheets having sheets
  • Previous by thread: [COCOA] Placing an insertion thingy into a NSTextView
  • Next by thread: Sheets having sheets
  • Index(es):
    • Date
    • Thread