Mercurial > xcodescriptingbridge
view Classes/MySampleProjectAppDelegate.m @ 6:7a0e6eeedd92
Style fixes
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Mon, 08 Aug 2011 19:32:30 -0700 |
parents | 5ec52341f221 |
children |
line wrap: on
line source
// // MySampleProjectAppDelegate.m // MySampleProject // // Created by Eric Wing on 7/29/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import "MySampleProjectAppDelegate.h" #import "MySampleProjectViewController.h" @implementation MySampleProjectAppDelegate @synthesize window; @synthesize viewController; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window.rootViewController = self.viewController; return YES; } - (void)applicationWillResignActive:(UIApplication *)application { [self.viewController stopAnimation]; } - (void)applicationDidBecomeActive:(UIApplication *)application { [self.viewController startAnimation]; } - (void)applicationWillTerminate:(UIApplication *)application { [self.viewController stopAnimation]; } - (void)applicationDidEnterBackground:(UIApplication *)application { // Handle any background procedures not related to animation here. } - (void)applicationWillEnterForeground:(UIApplication *)application { // Handle any foreground procedures not related to animation here. } - (void)dealloc { [viewController release]; [window release]; [super dealloc]; } @end