forked from mdonahoe/funrun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,227 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// main.m | ||
// sensortest | ||
// | ||
// Created by Matt Donahoe on 2/17/11. | ||
// Copyright 2011 MIT Media Lab. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
int main(int argc, char *argv[]) { | ||
|
||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | ||
int retVal = UIApplicationMain(argc, argv, nil, nil); | ||
[pool release]; | ||
return retVal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// AppDelegate_iPad.h | ||
// sensortest | ||
// | ||
// Created by Matt Donahoe on 2/17/11. | ||
// Copyright 2011 MIT Media Lab. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface AppDelegate_iPad : NSObject <UIApplicationDelegate> { | ||
UIWindow *window; | ||
} | ||
|
||
@property (nonatomic, retain) IBOutlet UIWindow *window; | ||
|
||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// | ||
// AppDelegate_iPad.m | ||
// sensortest | ||
// | ||
// Created by Matt Donahoe on 2/17/11. | ||
// Copyright 2011 MIT Media Lab. All rights reserved. | ||
// | ||
|
||
#import "AppDelegate_iPad.h" | ||
|
||
@implementation AppDelegate_iPad | ||
|
||
@synthesize window; | ||
|
||
|
||
#pragma mark - | ||
#pragma mark Application lifecycle | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | ||
|
||
// Override point for customization after application launch. | ||
|
||
[window makeKeyAndVisible]; | ||
|
||
return YES; | ||
} | ||
|
||
|
||
- (void)applicationWillResignActive:(UIApplication *)application { | ||
/* | ||
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | ||
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. | ||
*/ | ||
} | ||
|
||
|
||
- (void)applicationDidBecomeActive:(UIApplication *)application { | ||
/* | ||
Restart any tasks that were paused (or not yet started) while the application was inactive. | ||
*/ | ||
} | ||
|
||
|
||
- (void)applicationWillTerminate:(UIApplication *)application { | ||
/* | ||
Called when the application is about to terminate. | ||
*/ | ||
} | ||
|
||
|
||
#pragma mark - | ||
#pragma mark Memory management | ||
|
||
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application { | ||
/* | ||
Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. | ||
*/ | ||
} | ||
|
||
|
||
- (void)dealloc { | ||
[window release]; | ||
[super dealloc]; | ||
} | ||
|
||
|
||
@end |
Oops, something went wrong.