Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nick
committed
Sep 1, 2013
1 parent
d68dd57
commit 1d0223d
Showing
12 changed files
with
638 additions
and
0 deletions.
There are no files selected for viewing
288 changes: 288 additions & 0 deletions
288
Chapter27/iTahDoodle/iTahDoodle.xcodeproj/project.pbxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,288 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
01928A9317D3B349005A21B7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01928A9217D3B349005A21B7 /* UIKit.framework */; }; | ||
01928A9517D3B349005A21B7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01928A9417D3B349005A21B7 /* Foundation.framework */; }; | ||
01928A9717D3B349005A21B7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01928A9617D3B349005A21B7 /* CoreGraphics.framework */; }; | ||
01928A9D17D3B349005A21B7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 01928A9B17D3B349005A21B7 /* InfoPlist.strings */; }; | ||
01928A9F17D3B349005A21B7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 01928A9E17D3B349005A21B7 /* main.m */; }; | ||
01928AA317D3B349005A21B7 /* BNRAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 01928AA217D3B349005A21B7 /* BNRAppDelegate.m */; }; | ||
01928AA517D3B349005A21B7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 01928AA417D3B349005A21B7 /* Default.png */; }; | ||
01928AA717D3B349005A21B7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 01928AA617D3B349005A21B7 /* Default@2x.png */; }; | ||
01928AA917D3B349005A21B7 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 01928AA817D3B349005A21B7 /* Default-568h@2x.png */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
01928A8F17D3B349005A21B7 /* iTahDoodle.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iTahDoodle.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
01928A9217D3B349005A21B7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | ||
01928A9417D3B349005A21B7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | ||
01928A9617D3B349005A21B7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | ||
01928A9A17D3B349005A21B7 /* iTahDoodle-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "iTahDoodle-Info.plist"; sourceTree = "<group>"; }; | ||
01928A9C17D3B349005A21B7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | ||
01928A9E17D3B349005A21B7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | ||
01928AA017D3B349005A21B7 /* iTahDoodle-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "iTahDoodle-Prefix.pch"; sourceTree = "<group>"; }; | ||
01928AA117D3B349005A21B7 /* BNRAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BNRAppDelegate.h; sourceTree = "<group>"; }; | ||
01928AA217D3B349005A21B7 /* BNRAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNRAppDelegate.m; sourceTree = "<group>"; }; | ||
01928AA417D3B349005A21B7 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; | ||
01928AA617D3B349005A21B7 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; }; | ||
01928AA817D3B349005A21B7 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
01928A8C17D3B349005A21B7 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
01928A9317D3B349005A21B7 /* UIKit.framework in Frameworks */, | ||
01928A9517D3B349005A21B7 /* Foundation.framework in Frameworks */, | ||
01928A9717D3B349005A21B7 /* CoreGraphics.framework in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
01928A8617D3B349005A21B7 = { | ||
isa = PBXGroup; | ||
children = ( | ||
01928A9817D3B349005A21B7 /* iTahDoodle */, | ||
01928A9117D3B349005A21B7 /* Frameworks */, | ||
01928A9017D3B349005A21B7 /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
01928A9017D3B349005A21B7 /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
01928A8F17D3B349005A21B7 /* iTahDoodle.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
01928A9117D3B349005A21B7 /* Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
01928A9217D3B349005A21B7 /* UIKit.framework */, | ||
01928A9417D3B349005A21B7 /* Foundation.framework */, | ||
01928A9617D3B349005A21B7 /* CoreGraphics.framework */, | ||
); | ||
name = Frameworks; | ||
sourceTree = "<group>"; | ||
}; | ||
01928A9817D3B349005A21B7 /* iTahDoodle */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
01928AA117D3B349005A21B7 /* BNRAppDelegate.h */, | ||
01928AA217D3B349005A21B7 /* BNRAppDelegate.m */, | ||
01928A9917D3B349005A21B7 /* Supporting Files */, | ||
); | ||
path = iTahDoodle; | ||
sourceTree = "<group>"; | ||
}; | ||
01928A9917D3B349005A21B7 /* Supporting Files */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
01928A9A17D3B349005A21B7 /* iTahDoodle-Info.plist */, | ||
01928A9B17D3B349005A21B7 /* InfoPlist.strings */, | ||
01928A9E17D3B349005A21B7 /* main.m */, | ||
01928AA017D3B349005A21B7 /* iTahDoodle-Prefix.pch */, | ||
01928AA417D3B349005A21B7 /* Default.png */, | ||
01928AA617D3B349005A21B7 /* Default@2x.png */, | ||
01928AA817D3B349005A21B7 /* Default-568h@2x.png */, | ||
); | ||
name = "Supporting Files"; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
01928A8E17D3B349005A21B7 /* iTahDoodle */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 01928AAC17D3B349005A21B7 /* Build configuration list for PBXNativeTarget "iTahDoodle" */; | ||
buildPhases = ( | ||
01928A8B17D3B349005A21B7 /* Sources */, | ||
01928A8C17D3B349005A21B7 /* Frameworks */, | ||
01928A8D17D3B349005A21B7 /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = iTahDoodle; | ||
productName = iTahDoodle; | ||
productReference = 01928A8F17D3B349005A21B7 /* iTahDoodle.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
01928A8717D3B349005A21B7 /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
CLASSPREFIX = BNR; | ||
LastUpgradeCheck = 0460; | ||
ORGANIZATIONNAME = "Nicholas Squire"; | ||
}; | ||
buildConfigurationList = 01928A8A17D3B349005A21B7 /* Build configuration list for PBXProject "iTahDoodle" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
); | ||
mainGroup = 01928A8617D3B349005A21B7; | ||
productRefGroup = 01928A9017D3B349005A21B7 /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
01928A8E17D3B349005A21B7 /* iTahDoodle */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
01928A8D17D3B349005A21B7 /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
01928A9D17D3B349005A21B7 /* InfoPlist.strings in Resources */, | ||
01928AA517D3B349005A21B7 /* Default.png in Resources */, | ||
01928AA717D3B349005A21B7 /* Default@2x.png in Resources */, | ||
01928AA917D3B349005A21B7 /* Default-568h@2x.png in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
01928A8B17D3B349005A21B7 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
01928A9F17D3B349005A21B7 /* main.m in Sources */, | ||
01928AA317D3B349005A21B7 /* BNRAppDelegate.m in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
01928A9B17D3B349005A21B7 /* InfoPlist.strings */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
01928A9C17D3B349005A21B7 /* en */, | ||
); | ||
name = InfoPlist.strings; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
01928AAA17D3B349005A21B7 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INT_CONVERSION = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
COPY_PHASE_STRIP = NO; | ||
GCC_C_LANGUAGE_STANDARD = gnu99; | ||
GCC_DYNAMIC_NO_PIC = NO; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_PREPROCESSOR_DEFINITIONS = ( | ||
"DEBUG=1", | ||
"$(inherited)", | ||
); | ||
GCC_SYMBOLS_PRIVATE_EXTERN = NO; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 6.1; | ||
ONLY_ACTIVE_ARCH = YES; | ||
SDKROOT = iphoneos; | ||
}; | ||
name = Debug; | ||
}; | ||
01928AAB17D3B349005A21B7 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INT_CONVERSION = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
COPY_PHASE_STRIP = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu99; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 6.1; | ||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; | ||
SDKROOT = iphoneos; | ||
VALIDATE_PRODUCT = YES; | ||
}; | ||
name = Release; | ||
}; | ||
01928AAD17D3B349005A21B7 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "iTahDoodle/iTahDoodle-Prefix.pch"; | ||
INFOPLIST_FILE = "iTahDoodle/iTahDoodle-Info.plist"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
WRAPPER_EXTENSION = app; | ||
}; | ||
name = Debug; | ||
}; | ||
01928AAE17D3B349005A21B7 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "iTahDoodle/iTahDoodle-Prefix.pch"; | ||
INFOPLIST_FILE = "iTahDoodle/iTahDoodle-Info.plist"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
WRAPPER_EXTENSION = app; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
01928A8A17D3B349005A21B7 /* Build configuration list for PBXProject "iTahDoodle" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
01928AAA17D3B349005A21B7 /* Debug */, | ||
01928AAB17D3B349005A21B7 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
01928AAC17D3B349005A21B7 /* Build configuration list for PBXNativeTarget "iTahDoodle" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
01928AAD17D3B349005A21B7 /* Debug */, | ||
01928AAE17D3B349005A21B7 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 01928A8717D3B349005A21B7 /* Project object */; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// AppDelegate.h | ||
// iTahDoodle | ||
// | ||
// Created by Nicholas Squire on 9/1/13. | ||
// Copyright (c) 2013 Nicholas Squire. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface AppDelegate : UIResponder <UIApplicationDelegate> | ||
|
||
@property (strong, nonatomic) UIWindow *window; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// AppDelegate.m | ||
// iTahDoodle | ||
// | ||
// Created by Nicholas Squire on 9/1/13. | ||
// Copyright (c) 2013 Nicholas Squire. All rights reserved. | ||
// | ||
|
||
#import "AppDelegate.h" | ||
|
||
@implementation AppDelegate | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | ||
// Override point for customization after application launch. | ||
self.window.backgroundColor = [UIColor whiteColor]; | ||
[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:. | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// BNRAppDelegate.h | ||
// iTahDoodle | ||
// | ||
// Created by Nicholas Squire on 9/1/13. | ||
// Copyright (c) 2013 Nicholas Squire. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
// Declare a helper function that we will use to get a path | ||
// to the location on disk where we can save the to-do list | ||
NSString *docPath(void); | ||
|
||
@interface BNRAppDelegate : UIResponder <UIApplicationDelegate, UITableViewDataSource> | ||
{ | ||
UITableView *taskTable; | ||
UITextField *taskField; | ||
UIButton *insertButton; | ||
|
||
NSMutableArray *tasks; | ||
} | ||
|
||
- (void)addTask:(id)sender; | ||
|
||
@property (strong, nonatomic) UIWindow *window; | ||
|
||
@end |
Oops, something went wrong.