Mercurial > xcodescriptingbridge
view Classes/MySampleProjectAppDelegate.m @ 2:5c54957c04c5
Added ScriptingBridge/LuaCocoa example.
author | Eric Wing <ewing@anscamobile.com> |
---|---|
date | Fri, 29 Jul 2011 18:53:54 -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