Joost Ronkes Agerbeek has started a series on Writing a Basic Game Engine on his blog. In his first post he walks us through writing a game loop and gives us an initial template for his GameEngine class in C++.
He even includes a nice diagram, good stuff!
Now… if only someone would post a GameEngine in Objective-C.