Permalink
Browse files

Removed boiler plate code

Removed some boiler plate code from example 1.  I want it to be clear
that nothing special is happening in the app delegate.
  • Loading branch information...
1 parent 1bb3a43 commit 40383edecadbaa5eab4d0cfcb4b2124e708ee67c @epreston committed Dec 16, 2011
@@ -11,6 +11,8 @@
#import "PSHTreeGraphViewController.h"
+#pragma mark - Internal Interface
+
@interface PSHTreeGraphAppDelegate ()
{
@@ -40,37 +42,9 @@ - (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:
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.
- // If the application was previously in the background, optionally refresh the user interface.
-}
-
-- (void) applicationWillTerminate:(UIApplication *)application
-{
- // Called when the application is about to terminate.
- // See also applicationDidEnterBackground:.
-}
-
#pragma mark - Resouce 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
{
[viewController_ release];
@@ -15,6 +15,8 @@
#import "ObjCClassWrapper.h"
+#pragma mark - Internal Interface
+
@interface PSHTreeGraphViewController ()
{
@@ -65,6 +67,7 @@ - (void) viewDidLoad
[self setRootClassName:@"UIControl"];
+ // The system includes some other abstract base classes that are interesting:
// [self setRootClassName:@"CAAnimation"];
}

0 comments on commit 40383ed

Please sign in to comment.