Re: Idle Time in a loop
Re: Idle Time in a loop
- Subject: Re: Idle Time in a loop
- From: Sherm Pendley <email@hidden>
- Date: Sun, 17 Feb 2002 17:51:44 -0500
You could launch the task in a separate thread (NSThread), and
communicate with it using notifications (NSNotification) or DO
(NSDistantObject).
You only need to do this to avoid blocking your own application's local
event loop, by the way. A long-running routine in your application won't
block the system-wide event loop; pre-emptive multitasking prevents that.
sherm--
On Sunday, February 17, 2002, at 04:30 PM, Judi Smith wrote:
Hello all:
There is probably an easy answer to this, but...
I have a while loop that is performing a task. How do I allow for time
for, or transfer control to the event loop to process pending events in
the course of the while loop?
TIA
Judi Smith
_____________________________________________________
Judi Smith Awana Clubs International
Multimedia Maven 1 E Bode Rd.
Ph: 630-540-4570 Streamwood, IL 60107
Fx: 630-213-2640 http://www.awana.org
email@hidden
_______________________________________________
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.
_______________________________________________
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.