Skip to content

Commit

Permalink
created sensortest app
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonahoe committed Feb 17, 2011
1 parent c755380 commit b3c3a33
Show file tree
Hide file tree
Showing 9 changed files with 1,227 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sensortest/Shared/main.m
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;
}
18 changes: 18 additions & 0 deletions sensortest/iPad/AppDelegate_iPad.h
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

67 changes: 67 additions & 0 deletions sensortest/iPad/AppDelegate_iPad.m
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
Loading

0 comments on commit b3c3a33

Please sign in to comment.