Re: user-stoppable program
Re: user-stoppable program
- Subject: Re: user-stoppable program
- From: Ole Voss <email@hidden>
- Date: Fri, 26 May 2006 09:05:22 +0200
email@hidden schrieb:
Indeed. An alternative option would be to replace the while() with an
if(), and then use an NSTimer to repeatedly call the "worker" method.
That would avoid blocking the run loop.
> and then use an NSTimer to repeatedly call the "worker" method.
That would avoid blocking the run loop.
I tried the code below ; the timer does its job, but the problem is that
clicking the
"Stop It all" button does not stop the process. What am I doing wrong ?
Does your iteration-step take a long time to finish?
How do you invalidate the timer? Does the 'stop it all'-Button also call
'goOnAndOn' or does it have its own routine for invalidating the timer?
It seems to me, that your getting stuck in a loop somewhere.
Regards,
Ole.
_______________________________________________
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