Re:Modal run loop input sources (Mike Davis)
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