Comp.Sys.Mac.Game.Programming.Book
Chapter 3: The Basic Event Loop