• 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: Tight loop processing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tight loop processing


  • Subject: Re: Tight loop processing
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Thu, 10 Apr 2008 15:16:02 -0700

Depending on the nature of your simulation, and if you don't mind being Leopard-only, you might break it down into a series of NSOperations and let Cocoa handle the rest for you.

Mike


On Apr 10, 2008, at 11:00 AM, Don Arnel wrote:

Hey all...

This is my first time posting to this list. I've been a Windows developer for many many years and have just recently started to play around with Macs. I feel like a beginner all over again! Anyway....

I've got a Cocoa application which runs a simulation loop 1000s of times. Of course, this prevents any user interaction with the rest of the program while the simulation is running. When I was programming for Windows there was a call in Visual Basic (app.DoEvents()) which would process any pending events. You could put DoEvents() inside long loops to prevent blocking user input. Is there a similar way to handle this in Cocoa?

Thanks for any help!
- Don
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Tight loop processing (From: Don Arnel <email@hidden>)

  • Prev by Date: Re: core data and IB outlet binding
  • Next by Date: Re: Tips to deploy applications to multiple Mac OS X versions
  • Previous by thread: Re: Tight loop processing
  • Next by thread: A simple Objective-C question
  • Index(es):
    • Date
    • Thread