Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Basic structure for unit tests.
Browse files Browse the repository at this point in the history
Added basic structure for unit tests.
  • Loading branch information
epreston committed Aug 26, 2011
1 parent 41264f4 commit 7c6a9f3
Show file tree
Hide file tree
Showing 38 changed files with 3,343 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Example 1/PSHTreeGraph_Prefix.pch
Expand Up @@ -2,7 +2,14 @@
// Prefix header for all source files of the 'PSHTreeGraph' target in the 'PSHTreeGraph' project
//


#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
462 changes: 462 additions & 0 deletions PSTTreeGraph/PSTTreeGraph.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/PSTTreeGraph-Info.plist
@@ -0,0 +1,39 @@
<?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>en</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.prestonsoft.${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>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
14 changes: 14 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/PSTTreeGraph-Prefix.pch
@@ -0,0 +1,14 @@
//
// Prefix header for all source files of the 'PSTTreeGraph' target in the 'PSTTreeGraph' project
//

#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
19 changes: 19 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/PSTTreeGraphAppDelegate.h
@@ -0,0 +1,19 @@
//
// PSTTreeGraphAppDelegate.h
// PSTTreeGraph
//
// Created by Ed Preston on 26/08/11.
// Copyright 2011 Preston Software. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PSTTreeGraphViewController;

@interface PSTTreeGraphAppDelegate : NSObject <UIApplicationDelegate>

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

@property (nonatomic, retain) IBOutlet PSTTreeGraphViewController *viewController;

@end
73 changes: 73 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/PSTTreeGraphAppDelegate.m
@@ -0,0 +1,73 @@
//
// PSTTreeGraphAppDelegate.m
// PSTTreeGraph
//
// Created by Ed Preston on 26/08/11.
// Copyright 2011 Preston Software. All rights reserved.
//

#import "PSTTreeGraphAppDelegate.h"

#import "PSTTreeGraphViewController.h"

@implementation PSTTreeGraphAppDelegate

@synthesize window = _window;
@synthesize viewController = _viewController;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

self.window.rootViewController = self.viewController;
[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, this method is called instead of applicationWillTerminate: when the user quits.
*/
}

- (void)applicationWillEnterForeground:(UIApplication *)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
{
/*
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.
Save data if appropriate.
See also applicationDidEnterBackground:.
*/
}

- (void)dealloc
{
[_window release];
[_viewController release];
[super dealloc];
}

@end
13 changes: 13 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/PSTTreeGraphViewController.h
@@ -0,0 +1,13 @@
//
// PSTTreeGraphViewController.h
// PSTTreeGraph
//
// Created by Ed Preston on 26/08/11.
// Copyright 2011 Preston Software. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PSTTreeGraphViewController : UIViewController

@end
44 changes: 44 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/PSTTreeGraphViewController.m
@@ -0,0 +1,44 @@
//
// PSTTreeGraphViewController.m
// PSTTreeGraph
//
// Created by Ed Preston on 26/08/11.
// Copyright 2011 Preston Software. All rights reserved.
//

#import "PSTTreeGraphViewController.h"

@implementation PSTTreeGraphViewController

- (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.
}

#pragma mark - View lifecycle

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

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

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return YES;
}

@end
2 changes: 2 additions & 0 deletions PSTTreeGraph/PSTTreeGraph/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

0 comments on commit 7c6a9f3

Please sign in to comment.