• 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: Idle Time in a loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Idle Time in a loop
      • From: Judi Smith <email@hidden>
References: 
 >Idle Time in a loop (From: Judi Smith <email@hidden>)

  • Prev by Date: Re: GUI contruction from code
  • Next by Date: showHelp
  • Previous by thread: Idle Time in a loop
  • Next by thread: Re: Idle Time in a loop
  • Index(es):
    • Date
    • Thread