#import "PeanutsAppDelegate.h" #import "EAGLView.h" #import "peanutsmodel.h" @implementation PeanutsAppDelegate // synthesis of properties omitted - (id)init { [super init]; model = [[PeanutsModel alloc] init]; return self; } - (void)applicationDidFinishLaunching:(UIApplication *)application { glView.animationInterval = 1.0 / 60.0; [glView startAnimation]; [glView associate:model]; } // applicationWillResignActive, applicationDidBecomeActive omitted - (void)dealloc { [window release]; [glView release]; [model release]; [super dealloc]; } @end