Permalink
Browse files

Episode 32 sample code

  • Loading branch information...
1 parent 676e7d7 commit e463e17feb11a4d93733b39b7404ccdb60477d36 @subdigital committed Sep 6, 2012
Submodule Kiwi updated 56 files
+0 −18 Classes/Galaxy.h
+0 −36 Classes/Galaxy.m
+0 −1 Classes/Robot.h
+1 −6 Classes/Robot.m
+2 −2 Classes/StringPrefixMatcher.h
+2 −2 Classes/StringPrefixMatcher.m
+1 −1 Classes/TestClasses.h
+6 −0 Contributors.txt
+0 −8 Examples/ExampleTestCase.m
+6 −7 Examples/KiwiHooksSpec.m
+3 −4 Kiwi.podspec
+13 −756 Kiwi.xcodeproj/project.pbxproj
+0 −18 Kiwi/KWAny.h
+0 −47 Kiwi/KWAny.m
+1 −1 Kiwi/KWBeEmptyMatcher.m
+1 −2 Kiwi/KWBeMemberOfClassMatcher.m
+0 −20 Kiwi/KWBeSubclassOfClassMatcher.h
+0 −61 Kiwi/KWBeSubclassOfClassMatcher.m
+1 −1 Kiwi/KWCallSite.m
+0 −13 Kiwi/KWCaptureSpy.h
+0 −47 Kiwi/KWCaptureSpy.m
+2 −15 Kiwi/KWExample.h
+4 −24 Kiwi/KWExample.m
+0 −11 Kiwi/KWHamrestMatchingAdditions.h
+0 −24 Kiwi/KWHamrestMatchingAdditions.m
+4 −4 Kiwi/KWHaveMatcher.m
+0 −3 Kiwi/KWIntercept.h
+8 −51 Kiwi/KWIntercept.m
+1 −3 Kiwi/KWMatcherFactory.m
+18 −21 Kiwi/KWMessagePattern.m
+3 −3 Kiwi/KWMessageTracker.m
+0 −5 Kiwi/KWMock.h
+2 −28 Kiwi/KWMock.m
+1 −2 Kiwi/KWObjCUtilities.h
+0 −5 Kiwi/KWObjCUtilities.m
+1 −28 Kiwi/KWSpec.m
+0 −21 Kiwi/KWStringContainsMatcher.h
+0 −45 Kiwi/KWStringContainsMatcher.m
+0 −8 Kiwi/KWStub.h
+2 −48 Kiwi/KWStub.m
+2 −1 Kiwi/KWTestCase.m
+0 −6 Kiwi/Kiwi.h
+0 −3 Kiwi/KiwiMacros.h
+0 −2 Kiwi/NSObject+KiwiStubAdditions.h
+1 −26 Kiwi/NSObject+KiwiStubAdditions.m
+10 −4 Readme.md
+0 −26 Templates/Kiwi Spec.xctemplate/TemplateInfo.plist
+0 −16 Templates/Kiwi Spec.xctemplate/___FILEBASENAME___.m
+0 −67 Tests/KWCaptureTest.m
+1 −32 Tests/KWMessagePatternTest.m
+2 −35 Tests/KWMockTest.m
+2 −1 Tests/KWRealObjectSpyTest.m
+2 −18 Tests/KWRealObjectStubTest.m
+0 −34 Tests/KWStringContainsMatcherTest.m
+2 −1 Tests/KWStubTest.m
+0 −12 install-templates.sh
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.1" toolsVersion="2182" systemVersion="11D50b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="MAt-Cb-CrF">
+ <dependencies>
+ <deployment defaultVersion="1296" identifier="iOS"/>
+ <development defaultVersion="4200" identifier="xcode"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1181"/>
+ </dependencies>
+ <scenes>
+ <!--Add Latte View Controller-->
+ <scene sceneID="wam-M1-QUY">
+ <objects>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="TNi-ZQ-aGS" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ <tableViewController id="MAt-Cb-CrF" customClass="BLAddLatteViewController" sceneMemberID="viewController">
+ <tableView key="view" opaque="NO" clipsSubviews="YES" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="singleLineEtched" rowHeight="44" sectionHeaderHeight="10" sectionFooterHeight="10" id="V4A-Tq-Fgy">
+ <rect key="frame" x="0.0" y="64" width="320" height="416"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
+ <sections>
+ <tableViewSection headerTitle="Details" id="lu5-dF-kMq">
+ <cells>
+ <tableViewCell contentMode="scaleToFill" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="locationCell" id="llF-x3-2r3">
+ <rect key="frame" x="0.0" y="46" width="320" height="45"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
+ <rect key="frame" x="10" y="1" width="300" height="43"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="LOCATION" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" id="oiI-AG-8sK">
+ <rect key="frame" x="20" y="11" width="83" height="21"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
+ <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
+ <color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </label>
+ <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" minimumFontSize="17" id="d79-49-ha8">
+ <rect key="frame" x="111" y="6" width="189" height="31"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
+ <textInputTraits key="textInputTraits"/>
+ </textField>
+ </subviews>
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+ </view>
+ </tableViewCell>
+ <tableViewCell contentMode="scaleToFill" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="nameCell" id="SM2-XH-0kH">
+ <rect key="frame" x="0.0" y="91" width="320" height="45"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
+ <rect key="frame" x="10" y="0.0" width="300" height="43"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="YOUR NAME" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" id="BpX-pj-iks">
+ <rect key="frame" x="18" y="11" width="85" height="21"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
+ <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
+ <color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </label>
+ <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" minimumFontSize="17" id="j89-Ux-CPS">
+ <rect key="frame" x="111" y="6" width="189" height="31"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
+ <textInputTraits key="textInputTraits"/>
+ </textField>
+ </subviews>
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+ </view>
+ </tableViewCell>
+ </cells>
+ </tableViewSection>
+ <tableViewSection headerTitle="Photo" id="Qf1-vW-qgO">
+ <cells>
+ <tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="photoCell" rowHeight="83" id="zNO-V4-qN5">
+ <rect key="frame" x="0.0" y="182" width="320" height="85"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
+ <rect key="frame" x="10" y="1" width="300" height="82"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <subviews>
+ <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" id="MXy-Pi-axb">
+ <rect key="frame" x="20" y="4" width="74" height="74"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ </imageView>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Tap to choose photo" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" id="qDb-TP-p6X">
+ <rect key="frame" x="111" y="30" width="169" height="21"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
+ <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
+ <color key="highlightedColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+ </label>
+ </subviews>
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+ </view>
+ </tableViewCell>
+ </cells>
+ </tableViewSection>
+ <tableViewSection headerTitle="Comments" id="KaT-eV-0xi">
+ <cells>
+ <tableViewCell contentMode="scaleToFill" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="commentsCell" rowHeight="89" id="dIY-gX-JDy">
+ <rect key="frame" x="0.0" y="313" width="320" height="91"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
+ <rect key="frame" x="10" y="1" width="300" height="88"/>
+ <autoresizingMask key="autoresizingMask"/>
+ <subviews>
+ <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" id="szO-4K-9fx">
+ <rect key="frame" x="20" y="0.0" width="260" height="88"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" type="system" pointSize="14"/>
+ <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
+ </textView>
+ </subviews>
+ <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+ </view>
+ </tableViewCell>
+ </cells>
+ </tableViewSection>
+ </sections>
+ <connections>
+ <outlet property="dataSource" destination="MAt-Cb-CrF" id="CkV-Ju-vht"/>
+ <outlet property="delegate" destination="MAt-Cb-CrF" id="GL1-Tg-vf9"/>
+ </connections>
+ </tableView>
+ <toolbarItems/>
+ <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
+ <nil key="simulatedBottomBarMetrics"/>
+ <connections>
+ <outlet property="commentsTextView" destination="szO-4K-9fx" id="khB-mW-HCS"/>
+ <outlet property="imageView" destination="MXy-Pi-axb" id="YBv-JE-bDG"/>
+ <outlet property="locationTextField" destination="d79-49-ha8" id="khZ-7z-z6D"/>
+ <outlet property="nameTextField" destination="j89-Ux-CPS" id="K9w-ZG-w3X"/>
+ </connections>
+ </tableViewController>
+ </objects>
+ <point key="canvasLocation" x="266" y="101"/>
+ </scene>
+ </scenes>
+ <classes>
+ <class className="BLAddLatteViewController" superclassName="UITableViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/BLAddLatteViewController.h"/>
+ <relationships>
+ <relationship kind="outlet" name="commentsTextView" candidateClass="UITextView"/>
+ <relationship kind="outlet" name="imageView" candidateClass="UIImageView"/>
+ <relationship kind="outlet" name="locationTextField" candidateClass="UITextField"/>
+ <relationship kind="outlet" name="nameTextField" candidateClass="UITextField"/>
+ </relationships>
+ </class>
+ </classes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination"/>
+ </simulatedMetricsContainer>
+</document>
Oops, something went wrong.

0 comments on commit e463e17

Please sign in to comment.