Re: threads vs run-loops for keeping your GUI responsive
Re: threads vs run-loops for keeping your GUI responsive
- Subject: Re: threads vs run-loops for keeping your GUI responsive
- From: Pontus Ilbring <email@hidden>
- Date: Fri, 9 Dec 2005 16:43:57 +0100
On 12/9/05, Niko Matsakis <email@hidden> wrote:
>
It seems like what I really want to do is simply have a function
>
which does a discrete amount of work: processing one line from the
>
file, for example, and to repeatedly schedule calls of this function
>
onto the run loop. This way, if no other events should occur, my
>
function can get invoked, and I can do some work. Eventually, when
>
the work is done, I can exit the modal session as usual.
>
Transforming my code to work this way would be quite trivial.
Have you considered NSApplication's runModalSession:?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden