Skip to content

Commit

Permalink
-a
Browse files Browse the repository at this point in the history
first commit
  • Loading branch information
oscardelben committed Feb 27, 2011
0 parents commit a769347
Show file tree
Hide file tree
Showing 19 changed files with 4,760 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
build
22 changes: 22 additions & 0 deletions Classes/NSDateCalculationsAppDelegate.h
@@ -0,0 +1,22 @@
//
// NSDateCalculationsAppDelegate.h
// NSDateCalculations
//
// Created by Oscar Del Ben on 2/27/11.
// Copyright 2011 DibiStore. All rights reserved.
//

#import <UIKit/UIKit.h>

@class NSDateCalculationsViewController;

@interface NSDateCalculationsAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
NSDateCalculationsViewController *viewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet NSDateCalculationsViewController *viewController;

@end

88 changes: 88 additions & 0 deletions Classes/NSDateCalculationsAppDelegate.m
@@ -0,0 +1,88 @@
//
// NSDateCalculationsAppDelegate.m
// NSDateCalculations
//
// Created by Oscar Del Ben on 2/27/11.
// Copyright 2011 DibiStore. All rights reserved.
//

#import "NSDateCalculationsAppDelegate.h"
#import "NSDateCalculationsViewController.h"

@implementation NSDateCalculationsAppDelegate

@synthesize window;
@synthesize viewController;


#pragma mark -
#pragma mark Application lifecycle

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// Override point for customization after application launch.

// Add the view controller's view to the window and display.
[self.window addSubview:viewController.view];
[self.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)applicationDidEnterBackground:(UIApplication *)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, called instead of applicationWillTerminate: when the user quits.
*/
}


- (void)applicationWillEnterForeground:(UIApplication *)application {
/*
Called as part of 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 {
/*
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 -
#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 {
[viewController release];
[window release];
[super dealloc];
}


@end
16 changes: 16 additions & 0 deletions Classes/NSDateCalculationsViewController.h
@@ -0,0 +1,16 @@
//
// NSDateCalculationsViewController.h
// NSDateCalculations
//
// Created by Oscar Del Ben on 2/27/11.
// Copyright 2011 DibiStore. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSDateCalculationsViewController : UIViewController {

}

@end

66 changes: 66 additions & 0 deletions Classes/NSDateCalculationsViewController.m
@@ -0,0 +1,66 @@
//
// NSDateCalculationsViewController.m
// NSDateCalculations
//
// Created by Oscar Del Ben on 2/27/11.
// Copyright 2011 DibiStore. All rights reserved.
//

#import "NSDateCalculationsViewController.h"

@implementation NSDateCalculationsViewController



/*
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
*/

/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
}
*/


/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
}
*/


/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}


- (void)dealloc {
[super dealloc];
}

@end

0 comments on commit a769347

Please sign in to comment.