Skip to content

Commit

Permalink
expanded responder chain demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattneub committed Oct 10, 2016
1 parent aeca3f1 commit d213399
Show file tree
Hide file tree
Showing 7 changed files with 571 additions and 0 deletions.
295 changes: 295 additions & 0 deletions bk1ch11p472action2/bk1ch11p472action.xcodeproj/project.pbxproj
@@ -0,0 +1,295 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
32B16FF31AFFBD9000E98CCB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32B16FF21AFFBD9000E98CCB /* AppDelegate.swift */; };
32B16FF51AFFBD9000E98CCB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32B16FF41AFFBD9000E98CCB /* ViewController.swift */; };
32B16FF81AFFBD9000E98CCB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 32B16FF61AFFBD9000E98CCB /* Main.storyboard */; };
32B16FFA1AFFBD9000E98CCB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 32B16FF91AFFBD9000E98CCB /* Assets.xcassets */; };
32B16FFD1AFFBD9000E98CCB /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 32B16FFB1AFFBD9000E98CCB /* LaunchScreen.xib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
32B16FED1AFFBD9000E98CCB /* bk1ch11p472action.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = bk1ch11p472action.app; sourceTree = BUILT_PRODUCTS_DIR; };
32B16FF11AFFBD9000E98CCB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
32B16FF21AFFBD9000E98CCB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
32B16FF41AFFBD9000E98CCB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
32B16FF71AFFBD9000E98CCB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
32B16FF91AFFBD9000E98CCB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
32B16FFC1AFFBD9000E98CCB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
32B16FEA1AFFBD9000E98CCB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
32B16FE41AFFBD9000E98CCB = {
isa = PBXGroup;
children = (
32B16FEF1AFFBD9000E98CCB /* bk1ch11p472action */,
32B16FEE1AFFBD9000E98CCB /* Products */,
);
sourceTree = "<group>";
};
32B16FEE1AFFBD9000E98CCB /* Products */ = {
isa = PBXGroup;
children = (
32B16FED1AFFBD9000E98CCB /* bk1ch11p472action.app */,
);
name = Products;
sourceTree = "<group>";
};
32B16FEF1AFFBD9000E98CCB /* bk1ch11p472action */ = {
isa = PBXGroup;
children = (
32B16FF21AFFBD9000E98CCB /* AppDelegate.swift */,
32B16FF41AFFBD9000E98CCB /* ViewController.swift */,
32B16FF61AFFBD9000E98CCB /* Main.storyboard */,
32B16FF91AFFBD9000E98CCB /* Assets.xcassets */,
32B16FFB1AFFBD9000E98CCB /* LaunchScreen.xib */,
32B16FF11AFFBD9000E98CCB /* Info.plist */,
);
path = bk1ch11p472action;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
32B16FEC1AFFBD9000E98CCB /* bk1ch11p472action */ = {
isa = PBXNativeTarget;
buildConfigurationList = 32B1700C1AFFBD9000E98CCB /* Build configuration list for PBXNativeTarget "bk1ch11p472action" */;
buildPhases = (
32B16FE91AFFBD9000E98CCB /* Sources */,
32B16FEA1AFFBD9000E98CCB /* Frameworks */,
32B16FEB1AFFBD9000E98CCB /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = bk1ch11p472action;
productName = bk1ch11p472action;
productReference = 32B16FED1AFFBD9000E98CCB /* bk1ch11p472action.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
32B16FE51AFFBD9000E98CCB /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastUpgradeCheck = 0630;
ORGANIZATIONNAME = "Matt Neuburg";
TargetAttributes = {
32B16FEC1AFFBD9000E98CCB = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0800;
};
};
};
buildConfigurationList = 32B16FE81AFFBD9000E98CCB /* Build configuration list for PBXProject "bk1ch11p472action" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 32B16FE41AFFBD9000E98CCB;
productRefGroup = 32B16FEE1AFFBD9000E98CCB /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
32B16FEC1AFFBD9000E98CCB /* bk1ch11p472action */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
32B16FEB1AFFBD9000E98CCB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
32B16FF81AFFBD9000E98CCB /* Main.storyboard in Resources */,
32B16FFD1AFFBD9000E98CCB /* LaunchScreen.xib in Resources */,
32B16FFA1AFFBD9000E98CCB /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
32B16FE91AFFBD9000E98CCB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
32B16FF51AFFBD9000E98CCB /* ViewController.swift in Sources */,
32B16FF31AFFBD9000E98CCB /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
32B16FF61AFFBD9000E98CCB /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
32B16FF71AFFBD9000E98CCB /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
32B16FFB1AFFBD9000E98CCB /* LaunchScreen.xib */ = {
isa = PBXVariantGroup;
children = (
32B16FFC1AFFBD9000E98CCB /* Base */,
);
name = LaunchScreen.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
32B1700A1AFFBD9000E98CCB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
32B1700B1AFFBD9000E98CCB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
32B1700D1AFFBD9000E98CCB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = bk1ch11p472action/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
32B1700E1AFFBD9000E98CCB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = bk1ch11p472action/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
32B16FE81AFFBD9000E98CCB /* Build configuration list for PBXProject "bk1ch11p472action" */ = {
isa = XCConfigurationList;
buildConfigurations = (
32B1700A1AFFBD9000E98CCB /* Debug */,
32B1700B1AFFBD9000E98CCB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
32B1700C1AFFBD9000E98CCB /* Build configuration list for PBXNativeTarget "bk1ch11p472action" */ = {
isa = XCConfigurationList;
buildConfigurations = (
32B1700D1AFFBD9000E98CCB /* Debug */,
32B1700E1AFFBD9000E98CCB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 32B16FE51AFFBD9000E98CCB /* Project object */;
}
19 changes: 19 additions & 0 deletions bk1ch11p472action2/bk1ch11p472action/AppDelegate.swift
@@ -0,0 +1,19 @@


import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]?) -> Bool {
// Override point for customization after application launch.
return true
}



}

@@ -0,0 +1,38 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
19 changes: 19 additions & 0 deletions bk1ch11p472action2/bk1ch11p472action/Base.lproj/LaunchScreen.xib
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="8152.3" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8124.4"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="548" y="455"/>
</view>
</objects>
</document>

0 comments on commit d213399

Please sign in to comment.