source: orbit/iOS/Orbit/Orbit/AppDelegate.m @ f323fb4

Raw_EEG_Plot
Last change on this file since f323fb4 was a9059a5, checked in by Steve Castellotti <sc@…>, 9 years ago

Arduino:

  • updated to permit custom setting of Throttle, Yaw, and Pitch

Android:

  • Minor tweak to Configuration location

iOS:

  • Property mode set to 100644
File size: 2.7 KB
Line 
1//
2//  AppDelegate.m
3//  Orbit
4//
5//  Copyright (c) 2012 Puzzlebox Productions, LLC. All rights reserved.
6//  Originally created by Jonathon Horsman.
7//
8//  This code is released under the GNU Public License (GPL) version 2
9//  For more information please refer to http://www.gnu.org/copyleft/gpl.html
10//
11
12#import "AppDelegate.h"
13#import "TGAccessoryManager.h"
14#import "TGAccessoryDelegate.h"
15#import "ViewController.h"
16#import "CorePlot-CocoaTouch.h"
17
18@implementation AppDelegate
19
20- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
21{
22    // Override point for customization after application launch.
23    [[TGAccessoryManager sharedTGAccessoryManager] setupManagerWithInterval:0.05];
24    [[TGAccessoryManager sharedTGAccessoryManager] setDelegate:(ViewController *)self.window.rootViewController];
25    return YES;
26}
27                                                       
28- (void)applicationWillResignActive:(UIApplication *)application
29{
30    // 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.
31    // 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.
32    ViewController *rootController = (ViewController *)self.window.rootViewController;
33    [rootController appClosed];
34}
35
36- (void)applicationDidEnterBackground:(UIApplication *)application
37{
38    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
39    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
40}
41
42- (void)applicationWillEnterForeground:(UIApplication *)application
43{
44    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
45}
46
47- (void)applicationDidBecomeActive:(UIApplication *)application
48{
49    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
50    ViewController *rootController = (ViewController *)self.window.rootViewController;
51    [rootController appForegrounded];
52}
53
54- (void)applicationWillTerminate:(UIApplication *)application
55{
56    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
57    [[TGAccessoryManager sharedTGAccessoryManager] teardownManager];
58}
59
60@end
Note: See TracBrowser for help on using the repository browser.