Skip to content

Commit

Permalink
Initial commit. Ref Dudney Sec 24.2
Browse files Browse the repository at this point in the history
  • Loading branch information
beepscore committed Jan 30, 2010
0 parents commit 242f117
Show file tree
Hide file tree
Showing 11 changed files with 845 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gitignore
@@ -0,0 +1,19 @@
# Ref http://shanesbrain.net/2008/7/9/using-xcode-with-git
# http://gist.github.com/137348

# old skool
.svn

# osx noise
.DS_Store
*.swp
profile

# xcode noise
*~.nib
*.mode1v3
*.mode2v3
*.pbxuser
*.perspective
*.perspectivev3
build/
22 changes: 22 additions & 0 deletions Classes/DistanceAppDelegate.h
@@ -0,0 +1,22 @@
//
// DistanceAppDelegate.h
// Distance
//
// Created by Steve Baker on 1/30/10.
// Copyright Beepscore LLC 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DistanceViewController;

@interface DistanceAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
DistanceViewController *viewController;
}

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

@end

35 changes: 35 additions & 0 deletions Classes/DistanceAppDelegate.m
@@ -0,0 +1,35 @@
//
// DistanceAppDelegate.m
// Distance
//
// Created by Steve Baker on 1/30/10.
// Copyright Beepscore LLC 2010. All rights reserved.
//

#import "DistanceAppDelegate.h"
#import "DistanceViewController.h"

@implementation DistanceAppDelegate

@synthesize window;
@synthesize viewController;


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

// Override point for customization after app launch
[window addSubview:viewController.view];
[window makeKeyAndVisible];

return YES;
}


- (void)dealloc {
[viewController release];
[window release];
[super dealloc];
}


@end
16 changes: 16 additions & 0 deletions Classes/DistanceViewController.h
@@ -0,0 +1,16 @@
//
// DistanceViewController.h
// Distance
//
// Created by Steve Baker on 1/30/10.
// Copyright Beepscore LLC 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DistanceViewController : UIViewController {

}

@end

65 changes: 65 additions & 0 deletions Classes/DistanceViewController.m
@@ -0,0 +1,65 @@
//
// DistanceViewController.m
// Distance
//
// Created by Steve Baker on 1/30/10.
// Copyright Beepscore LLC 2010. All rights reserved.
//

#import "DistanceViewController.h"

@implementation DistanceViewController



/*
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// 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
30 changes: 30 additions & 0 deletions Distance-Info.plist
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
</dict>
</plist>

0 comments on commit 242f117

Please sign in to comment.