Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 411

root-tutorial-5.34.14-2.fc18.noarch.rpm

#import "TutorialsAppDelegate.h"
#import "RootViewController.h"

#import "TApplication.h"

@implementation TutorialsAppDelegate {
   TApplication *rootApp;
}

@synthesize window;
@synthesize splitViewController;
@synthesize rootViewController;
@synthesize detailViewController;

//_________________________________________________________________
- (void) dealloc
{
   delete rootApp;
}

//_________________________________________________________________
- (BOOL) application : (UIApplication *) application didFinishLaunchingWithOptions : (NSDictionary *) launchOptions
{
#pragma unused(application, launchOptions)

   // Override point for customization after application launch.
   // Add the split view controller's view to the window and display.
   rootApp = new TApplication("iosApp", 0, 0);

   //
   self.splitViewController.presentsWithGesture = NO;
   //
   self.window.rootViewController = self.splitViewController;
   [self.window makeKeyAndVisible];

   return YES;
}

//_________________________________________________________________
- (void) applicationWillResignActive : (UIApplication *) application
{
#pragma unused(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) applicationDidEnterBackground : (UIApplication *) application
{
#pragma unused(application)

   /*
    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.
    If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    */
}

//_________________________________________________________________
- (void) applicationWillEnterForeground : (UIApplication *) application
{
#pragma unused(application)

   /*
    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.
    */
}

//_________________________________________________________________
- (void) applicationDidBecomeActive : (UIApplication *) application
{
#pragma unused(application)

   /*
    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.
    */
}

//_________________________________________________________________
- (void) applicationWillTerminate : (UIApplication *) application
{
#pragma unused(application)

   /*
    Called when the application is about to terminate.
    Save data if appropriate.
    See also applicationDidEnterBackground:.
    */
}

@end