This tutorial uses the Free Pascal Compiler and Lazarus IDE Mac port. Windows programmers can follow along without complication since both IDEs are almost 100% identical. Programmers looking to port Delphi applications to the Mac, should take a look at using Lazarus since Delphi for Mac X does not exist, at this time. Also, these tools are useful when porting Turbo Pascal programs to the Macintosh since Turbo Pascal For Mac is no longer offered by Borland.


The system timer can be found in the system tab. The main settings for the timer is Enabled and Interval. When Enabled is true the system timer is active. When Enabled is false the system timer is not active. Interval is measured in 1/1000 of a second. So, when Interval is set at 1000, the timer will trigger every second.



The code used in this tutorial:


Mac: BouncyBall.zip

BouncyBallWin.zip


Video Tutorial: Free Pascal Tutorial 22 - System Timer (9:59)






























Previous                   Next