Changeset ab9d63b in orbit for iOS/Orbit/Orbit/AppDelegate.m


Ignore:
Timestamp:
07/15/13 18:04:05 (9 years ago)
Author:
Jonathon Horsman <jonathon@…>
Branches:
master, RawEEG, Servo, Tab_Interface, pyramid
Children:
9015b1e
Parents:
d6fbdfb
Message:

Initial check in to convert into a 4 tab app with tutorial, flight, advanced and support tabs.
Old controller code remains for now but about to be removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/AppDelegate.m

    ra9059a5 rab9d63b  
    1111 
    1212#import "AppDelegate.h" 
    13 #import "TGAccessoryManager.h" 
    14 #import "TGAccessoryDelegate.h" 
    15 #import "ViewController.h" 
     13#import "SignalConverter.h" 
    1614#import "CorePlot-CocoaTouch.h" 
    1715 
    1816@implementation AppDelegate 
    1917 
     18@synthesize signalConverter; 
     19 
    2020- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
    2121{ 
    2222    // Override point for customization after application launch. 
    23     [[TGAccessoryManager sharedTGAccessoryManager] setupManagerWithInterval:0.05]; 
    24     [[TGAccessoryManager sharedTGAccessoryManager] setDelegate:(ViewController *)self.window.rootViewController]; 
     23    signalConverter = [[SignalConverter alloc] init]; 
     24//    [[TGAccessoryManager sharedTGAccessoryManager] setupManagerWithInterval:0.05]; 
     25//    [[TGAccessoryManager sharedTGAccessoryManager] setDelegate:(ViewController *)self.window.rootViewController]; 
    2526    return YES; 
    2627} 
     
    3031    // 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. 
    3132    // 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]; 
     33//    ViewController *rootController = (ViewController *)self.window.rootViewController; 
     34//    [rootController appClosed]; 
    3435} 
    3536 
     
    4849{ 
    4950    // 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]; 
     51//    ViewController *rootController = (ViewController *)self.window.rootViewController; 
     52//    [rootController appForegrounded]; 
    5253} 
    5354 
Note: See TracChangeset for help on using the changeset viewer.