PDA

View Full Version : Windows Event Loop -> Cocoa Timers


maaaaark
2005.04.08, 06:46 PM
Since it seems like the perferred way of handling Cocoa event loops is through NSTimers, I am curious as to how Windows stands in this scheme. When porting games, are there many Windows games that utilize an equivelent of Cocoa's timers? Or is it usually a matter of converting the classic while(!done) style event loop to a NSTimer?

-Mark

OneSadCookie
2005.04.08, 07:13 PM
Windows doesn't have an equivalent of Cocoa's timers.

Red Marble Games
2005.04.11, 02:22 PM
Right. I generally replace the ProcessNextMessage() loop on Windows with a Carbon timer and use Carbon events.