Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1 from aaronbrethorst/master

Example and -initWithCoder:
  • Loading branch information...
commit 53ba67831bb42302f474a405a64db03fbb65ccdd 2 parents 3cf09b8 + 8f07f11
Sam Soffes authored December 04, 2011
5  .gitignore
... ...
@@ -0,0 +1,5 @@
  1
+*~.nib/ 
  2
+*.pbxuser 
  3
+.xcuserdatad
  4
+xcuserdata/ 
  5
+.DS_Store
286  Example/Example.xcodeproj/project.pbxproj
... ...
@@ -0,0 +1,286 @@
  1
+// !$*UTF8*$!
  2
+{
  3
+	archiveVersion = 1;
  4
+	classes = {
  5
+	};
  6
+	objectVersion = 46;
  7
+	objects = {
  8
+
  9
+/* Begin PBXBuildFile section */
  10
+		93DD5097148BFD370021E244 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 93DD5096148BFD370021E244 /* UIKit.framework */; };
  11
+		93DD5099148BFD370021E244 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 93DD5098148BFD370021E244 /* Foundation.framework */; };
  12
+		93DD509B148BFD370021E244 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 93DD509A148BFD370021E244 /* CoreGraphics.framework */; };
  13
+		93DD50A1148BFD370021E244 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 93DD509F148BFD370021E244 /* InfoPlist.strings */; };
  14
+		93DD50A3148BFD370021E244 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 93DD50A2148BFD370021E244 /* main.m */; };
  15
+		93DD50A7148BFD370021E244 /* SSAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 93DD50A6148BFD370021E244 /* SSAppDelegate.m */; };
  16
+		93DD50AA148BFD370021E244 /* SSViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 93DD50A9148BFD370021E244 /* SSViewController.m */; };
  17
+		93DD50AD148BFD370021E244 /* SSViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 93DD50AB148BFD370021E244 /* SSViewController.xib */; };
  18
+		93DD50B5148BFD400021E244 /* SSIndicatorLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 93DD50B4148BFD400021E244 /* SSIndicatorLabel.m */; };
  19
+/* End PBXBuildFile section */
  20
+
  21
+/* Begin PBXFileReference section */
  22
+		93DD5092148BFD370021E244 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
  23
+		93DD5096148BFD370021E244 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  24
+		93DD5098148BFD370021E244 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  25
+		93DD509A148BFD370021E244 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  26
+		93DD509E148BFD370021E244 /* Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Example-Info.plist"; sourceTree = "<group>"; };
  27
+		93DD50A0148BFD370021E244 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  28
+		93DD50A2148BFD370021E244 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  29
+		93DD50A4148BFD370021E244 /* Example-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Example-Prefix.pch"; sourceTree = "<group>"; };
  30
+		93DD50A5148BFD370021E244 /* SSAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSAppDelegate.h; sourceTree = "<group>"; };
  31
+		93DD50A6148BFD370021E244 /* SSAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SSAppDelegate.m; sourceTree = "<group>"; };
  32
+		93DD50A8148BFD370021E244 /* SSViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSViewController.h; sourceTree = "<group>"; };
  33
+		93DD50A9148BFD370021E244 /* SSViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SSViewController.m; sourceTree = "<group>"; };
  34
+		93DD50AC148BFD370021E244 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SSViewController.xib; sourceTree = "<group>"; };
  35
+		93DD50B3148BFD400021E244 /* SSIndicatorLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SSIndicatorLabel.h; path = ../SSIndicatorLabel.h; sourceTree = "<group>"; };
  36
+		93DD50B4148BFD400021E244 /* SSIndicatorLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SSIndicatorLabel.m; path = ../SSIndicatorLabel.m; sourceTree = "<group>"; };
  37
+/* End PBXFileReference section */
  38
+
  39
+/* Begin PBXFrameworksBuildPhase section */
  40
+		93DD508F148BFD370021E244 /* Frameworks */ = {
  41
+			isa = PBXFrameworksBuildPhase;
  42
+			buildActionMask = 2147483647;
  43
+			files = (
  44
+				93DD5097148BFD370021E244 /* UIKit.framework in Frameworks */,
  45
+				93DD5099148BFD370021E244 /* Foundation.framework in Frameworks */,
  46
+				93DD509B148BFD370021E244 /* CoreGraphics.framework in Frameworks */,
  47
+			);
  48
+			runOnlyForDeploymentPostprocessing = 0;
  49
+		};
  50
+/* End PBXFrameworksBuildPhase section */
  51
+
  52
+/* Begin PBXGroup section */
  53
+		93DD5087148BFD370021E244 = {
  54
+			isa = PBXGroup;
  55
+			children = (
  56
+				93DD50B3148BFD400021E244 /* SSIndicatorLabel.h */,
  57
+				93DD50B4148BFD400021E244 /* SSIndicatorLabel.m */,
  58
+				93DD509C148BFD370021E244 /* Example */,
  59
+				93DD5095148BFD370021E244 /* Frameworks */,
  60
+				93DD5093148BFD370021E244 /* Products */,
  61
+			);
  62
+			sourceTree = "<group>";
  63
+		};
  64
+		93DD5093148BFD370021E244 /* Products */ = {
  65
+			isa = PBXGroup;
  66
+			children = (
  67
+				93DD5092148BFD370021E244 /* Example.app */,
  68
+			);
  69
+			name = Products;
  70
+			sourceTree = "<group>";
  71
+		};
  72
+		93DD5095148BFD370021E244 /* Frameworks */ = {
  73
+			isa = PBXGroup;
  74
+			children = (
  75
+				93DD5096148BFD370021E244 /* UIKit.framework */,
  76
+				93DD5098148BFD370021E244 /* Foundation.framework */,
  77
+				93DD509A148BFD370021E244 /* CoreGraphics.framework */,
  78
+			);
  79
+			name = Frameworks;
  80
+			sourceTree = "<group>";
  81
+		};
  82
+		93DD509C148BFD370021E244 /* Example */ = {
  83
+			isa = PBXGroup;
  84
+			children = (
  85
+				93DD50A5148BFD370021E244 /* SSAppDelegate.h */,
  86
+				93DD50A6148BFD370021E244 /* SSAppDelegate.m */,
  87
+				93DD50A8148BFD370021E244 /* SSViewController.h */,
  88
+				93DD50A9148BFD370021E244 /* SSViewController.m */,
  89
+				93DD50AB148BFD370021E244 /* SSViewController.xib */,
  90
+				93DD509D148BFD370021E244 /* Supporting Files */,
  91
+			);
  92
+			path = Example;
  93
+			sourceTree = "<group>";
  94
+		};
  95
+		93DD509D148BFD370021E244 /* Supporting Files */ = {
  96
+			isa = PBXGroup;
  97
+			children = (
  98
+				93DD509E148BFD370021E244 /* Example-Info.plist */,
  99
+				93DD509F148BFD370021E244 /* InfoPlist.strings */,
  100
+				93DD50A2148BFD370021E244 /* main.m */,
  101
+				93DD50A4148BFD370021E244 /* Example-Prefix.pch */,
  102
+			);
  103
+			name = "Supporting Files";
  104
+			sourceTree = "<group>";
  105
+		};
  106
+/* End PBXGroup section */
  107
+
  108
+/* Begin PBXNativeTarget section */
  109
+		93DD5091148BFD370021E244 /* Example */ = {
  110
+			isa = PBXNativeTarget;
  111
+			buildConfigurationList = 93DD50B0148BFD370021E244 /* Build configuration list for PBXNativeTarget "Example" */;
  112
+			buildPhases = (
  113
+				93DD508E148BFD370021E244 /* Sources */,
  114
+				93DD508F148BFD370021E244 /* Frameworks */,
  115
+				93DD5090148BFD370021E244 /* Resources */,
  116
+			);
  117
+			buildRules = (
  118
+			);
  119
+			dependencies = (
  120
+			);
  121
+			name = Example;
  122
+			productName = Example;
  123
+			productReference = 93DD5092148BFD370021E244 /* Example.app */;
  124
+			productType = "com.apple.product-type.application";
  125
+		};
  126
+/* End PBXNativeTarget section */
  127
+
  128
+/* Begin PBXProject section */
  129
+		93DD5089148BFD370021E244 /* Project object */ = {
  130
+			isa = PBXProject;
  131
+			attributes = {
  132
+				LastUpgradeCheck = 0420;
  133
+				ORGANIZATIONNAME = "Structlab LLC";
  134
+			};
  135
+			buildConfigurationList = 93DD508C148BFD370021E244 /* Build configuration list for PBXProject "Example" */;
  136
+			compatibilityVersion = "Xcode 3.2";
  137
+			developmentRegion = English;
  138
+			hasScannedForEncodings = 0;
  139
+			knownRegions = (
  140
+				en,
  141
+			);
  142
+			mainGroup = 93DD5087148BFD370021E244;
  143
+			productRefGroup = 93DD5093148BFD370021E244 /* Products */;
  144
+			projectDirPath = "";
  145
+			projectRoot = "";
  146
+			targets = (
  147
+				93DD5091148BFD370021E244 /* Example */,
  148
+			);
  149
+		};
  150
+/* End PBXProject section */
  151
+
  152
+/* Begin PBXResourcesBuildPhase section */
  153
+		93DD5090148BFD370021E244 /* Resources */ = {
  154
+			isa = PBXResourcesBuildPhase;
  155
+			buildActionMask = 2147483647;
  156
+			files = (
  157
+				93DD50A1148BFD370021E244 /* InfoPlist.strings in Resources */,
  158
+				93DD50AD148BFD370021E244 /* SSViewController.xib in Resources */,
  159
+			);
  160
+			runOnlyForDeploymentPostprocessing = 0;
  161
+		};
  162
+/* End PBXResourcesBuildPhase section */
  163
+
  164
+/* Begin PBXSourcesBuildPhase section */
  165
+		93DD508E148BFD370021E244 /* Sources */ = {
  166
+			isa = PBXSourcesBuildPhase;
  167
+			buildActionMask = 2147483647;
  168
+			files = (
  169
+				93DD50A3148BFD370021E244 /* main.m in Sources */,
  170
+				93DD50A7148BFD370021E244 /* SSAppDelegate.m in Sources */,
  171
+				93DD50AA148BFD370021E244 /* SSViewController.m in Sources */,
  172
+				93DD50B5148BFD400021E244 /* SSIndicatorLabel.m in Sources */,
  173
+			);
  174
+			runOnlyForDeploymentPostprocessing = 0;
  175
+		};
  176
+/* End PBXSourcesBuildPhase section */
  177
+
  178
+/* Begin PBXVariantGroup section */
  179
+		93DD509F148BFD370021E244 /* InfoPlist.strings */ = {
  180
+			isa = PBXVariantGroup;
  181
+			children = (
  182
+				93DD50A0148BFD370021E244 /* en */,
  183
+			);
  184
+			name = InfoPlist.strings;
  185
+			sourceTree = "<group>";
  186
+		};
  187
+		93DD50AB148BFD370021E244 /* SSViewController.xib */ = {
  188
+			isa = PBXVariantGroup;
  189
+			children = (
  190
+				93DD50AC148BFD370021E244 /* en */,
  191
+			);
  192
+			name = SSViewController.xib;
  193
+			sourceTree = "<group>";
  194
+		};
  195
+/* End PBXVariantGroup section */
  196
+
  197
+/* Begin XCBuildConfiguration section */
  198
+		93DD50AE148BFD370021E244 /* Debug */ = {
  199
+			isa = XCBuildConfiguration;
  200
+			buildSettings = {
  201
+				ALWAYS_SEARCH_USER_PATHS = NO;
  202
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  203
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  204
+				COPY_PHASE_STRIP = NO;
  205
+				GCC_C_LANGUAGE_STANDARD = gnu99;
  206
+				GCC_DYNAMIC_NO_PIC = NO;
  207
+				GCC_OPTIMIZATION_LEVEL = 0;
  208
+				GCC_PREPROCESSOR_DEFINITIONS = (
  209
+					"DEBUG=1",
  210
+					"$(inherited)",
  211
+				);
  212
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
  213
+				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
  214
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
  215
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
  216
+				GCC_WARN_UNUSED_VARIABLE = YES;
  217
+				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
  218
+				SDKROOT = iphoneos;
  219
+			};
  220
+			name = Debug;
  221
+		};
  222
+		93DD50AF148BFD370021E244 /* Release */ = {
  223
+			isa = XCBuildConfiguration;
  224
+			buildSettings = {
  225
+				ALWAYS_SEARCH_USER_PATHS = NO;
  226
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  227
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  228
+				COPY_PHASE_STRIP = YES;
  229
+				GCC_C_LANGUAGE_STANDARD = gnu99;
  230
+				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
  231
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
  232
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
  233
+				GCC_WARN_UNUSED_VARIABLE = YES;
  234
+				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
  235
+				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
  236
+				SDKROOT = iphoneos;
  237
+				VALIDATE_PRODUCT = YES;
  238
+			};
  239
+			name = Release;
  240
+		};
  241
+		93DD50B1148BFD370021E244 /* Debug */ = {
  242
+			isa = XCBuildConfiguration;
  243
+			buildSettings = {
  244
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
  245
+				GCC_PREFIX_HEADER = "Example/Example-Prefix.pch";
  246
+				INFOPLIST_FILE = "Example/Example-Info.plist";
  247
+				PRODUCT_NAME = "$(TARGET_NAME)";
  248
+				WRAPPER_EXTENSION = app;
  249
+			};
  250
+			name = Debug;
  251
+		};
  252
+		93DD50B2148BFD370021E244 /* Release */ = {
  253
+			isa = XCBuildConfiguration;
  254
+			buildSettings = {
  255
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
  256
+				GCC_PREFIX_HEADER = "Example/Example-Prefix.pch";
  257
+				INFOPLIST_FILE = "Example/Example-Info.plist";
  258
+				PRODUCT_NAME = "$(TARGET_NAME)";
  259
+				WRAPPER_EXTENSION = app;
  260
+			};
  261
+			name = Release;
  262
+		};
  263
+/* End XCBuildConfiguration section */
  264
+
  265
+/* Begin XCConfigurationList section */
  266
+		93DD508C148BFD370021E244 /* Build configuration list for PBXProject "Example" */ = {
  267
+			isa = XCConfigurationList;
  268
+			buildConfigurations = (
  269
+				93DD50AE148BFD370021E244 /* Debug */,
  270
+				93DD50AF148BFD370021E244 /* Release */,
  271
+			);
  272
+			defaultConfigurationIsVisible = 0;
  273
+			defaultConfigurationName = Release;
  274
+		};
  275
+		93DD50B0148BFD370021E244 /* Build configuration list for PBXNativeTarget "Example" */ = {
  276
+			isa = XCConfigurationList;
  277
+			buildConfigurations = (
  278
+				93DD50B1148BFD370021E244 /* Debug */,
  279
+				93DD50B2148BFD370021E244 /* Release */,
  280
+			);
  281
+			defaultConfigurationIsVisible = 0;
  282
+		};
  283
+/* End XCConfigurationList section */
  284
+	};
  285
+	rootObject = 93DD5089148BFD370021E244 /* Project object */;
  286
+}
7  Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata
... ...
@@ -0,0 +1,7 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<Workspace
  3
+   version = "1.0">
  4
+   <FileRef
  5
+      location = "self:Example.xcodeproj">
  6
+   </FileRef>
  7
+</Workspace>
84  Example/Example.xcodeproj/xcuserdata/aaron.xcuserdatad/xcschemes/Example.xcscheme
... ...
@@ -0,0 +1,84 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<Scheme
  3
+   version = "1.3">
  4
+   <BuildAction
  5
+      parallelizeBuildables = "YES"
  6
+      buildImplicitDependencies = "YES">
  7
+      <BuildActionEntries>
  8
+         <BuildActionEntry
  9
+            buildForTesting = "YES"
  10
+            buildForRunning = "YES"
  11
+            buildForProfiling = "YES"
  12
+            buildForArchiving = "YES"
  13
+            buildForAnalyzing = "YES">
  14
+            <BuildableReference
  15
+               BuildableIdentifier = "primary"
  16
+               BlueprintIdentifier = "93DD5091148BFD370021E244"
  17
+               BuildableName = "Example.app"
  18
+               BlueprintName = "Example"
  19
+               ReferencedContainer = "container:Example.xcodeproj">
  20
+            </BuildableReference>
  21
+         </BuildActionEntry>
  22
+      </BuildActionEntries>
  23
+   </BuildAction>
  24
+   <TestAction
  25
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
  26
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
  27
+      shouldUseLaunchSchemeArgsEnv = "YES"
  28
+      buildConfiguration = "Debug">
  29
+      <Testables>
  30
+      </Testables>
  31
+      <MacroExpansion>
  32
+         <BuildableReference
  33
+            BuildableIdentifier = "primary"
  34
+            BlueprintIdentifier = "93DD5091148BFD370021E244"
  35
+            BuildableName = "Example.app"
  36
+            BlueprintName = "Example"
  37
+            ReferencedContainer = "container:Example.xcodeproj">
  38
+         </BuildableReference>
  39
+      </MacroExpansion>
  40
+   </TestAction>
  41
+   <LaunchAction
  42
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
  43
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
  44
+      launchStyle = "0"
  45
+      useCustomWorkingDirectory = "NO"
  46
+      buildConfiguration = "Debug"
  47
+      debugDocumentVersioning = "YES"
  48
+      allowLocationSimulation = "YES">
  49
+      <BuildableProductRunnable>
  50
+         <BuildableReference
  51
+            BuildableIdentifier = "primary"
  52
+            BlueprintIdentifier = "93DD5091148BFD370021E244"
  53
+            BuildableName = "Example.app"
  54
+            BlueprintName = "Example"
  55
+            ReferencedContainer = "container:Example.xcodeproj">
  56
+         </BuildableReference>
  57
+      </BuildableProductRunnable>
  58
+      <AdditionalOptions>
  59
+      </AdditionalOptions>
  60
+   </LaunchAction>
  61
+   <ProfileAction
  62
+      shouldUseLaunchSchemeArgsEnv = "YES"
  63
+      savedToolIdentifier = ""
  64
+      useCustomWorkingDirectory = "NO"
  65
+      buildConfiguration = "Release"
  66
+      debugDocumentVersioning = "YES">
  67
+      <BuildableProductRunnable>
  68
+         <BuildableReference
  69
+            BuildableIdentifier = "primary"
  70
+            BlueprintIdentifier = "93DD5091148BFD370021E244"
  71
+            BuildableName = "Example.app"
  72
+            BlueprintName = "Example"
  73
+            ReferencedContainer = "container:Example.xcodeproj">
  74
+         </BuildableReference>
  75
+      </BuildableProductRunnable>
  76
+   </ProfileAction>
  77
+   <AnalyzeAction
  78
+      buildConfiguration = "Debug">
  79
+   </AnalyzeAction>
  80
+   <ArchiveAction
  81
+      buildConfiguration = "Release"
  82
+      revealArchiveInOrganizer = "YES">
  83
+   </ArchiveAction>
  84
+</Scheme>
22  Example/Example.xcodeproj/xcuserdata/aaron.xcuserdatad/xcschemes/xcschememanagement.plist
... ...
@@ -0,0 +1,22 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>SchemeUserState</key>
  6
+	<dict>
  7
+		<key>Example.xcscheme</key>
  8
+		<dict>
  9
+			<key>orderHint</key>
  10
+			<integer>0</integer>
  11
+		</dict>
  12
+	</dict>
  13
+	<key>SuppressBuildableAutocreation</key>
  14
+	<dict>
  15
+		<key>93DD5091148BFD370021E244</key>
  16
+		<dict>
  17
+			<key>primary</key>
  18
+			<true/>
  19
+		</dict>
  20
+	</dict>
  21
+</dict>
  22
+</plist>
40  Example/Example/Example-Info.plist
... ...
@@ -0,0 +1,40 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>CFBundleDevelopmentRegion</key>
  6
+	<string>en</string>
  7
+	<key>CFBundleDisplayName</key>
  8
+	<string>${PRODUCT_NAME}</string>
  9
+	<key>CFBundleExecutable</key>
  10
+	<string>${EXECUTABLE_NAME}</string>
  11
+	<key>CFBundleIconFiles</key>
  12
+	<array/>
  13
+	<key>CFBundleIdentifier</key>
  14
+	<string>es.samsoff.${PRODUCT_NAME:rfc1034identifier}</string>
  15
+	<key>CFBundleInfoDictionaryVersion</key>
  16
+	<string>6.0</string>
  17
+	<key>CFBundleName</key>
  18
+	<string>${PRODUCT_NAME}</string>
  19
+	<key>CFBundlePackageType</key>
  20
+	<string>APPL</string>
  21
+	<key>CFBundleShortVersionString</key>
  22
+	<string>1.0</string>
  23
+	<key>CFBundleSignature</key>
  24
+	<string>????</string>
  25
+	<key>CFBundleVersion</key>
  26
+	<string>1.0</string>
  27
+	<key>LSRequiresIPhoneOS</key>
  28
+	<true/>
  29
+	<key>UIRequiredDeviceCapabilities</key>
  30
+	<array>
  31
+		<string>armv7</string>
  32
+	</array>
  33
+	<key>UISupportedInterfaceOrientations</key>
  34
+	<array>
  35
+		<string>UIInterfaceOrientationPortrait</string>
  36
+		<string>UIInterfaceOrientationLandscapeLeft</string>
  37
+		<string>UIInterfaceOrientationLandscapeRight</string>
  38
+	</array>
  39
+</dict>
  40
+</plist>
14  Example/Example/Example-Prefix.pch
... ...
@@ -0,0 +1,14 @@
  1
+//
  2
+// Prefix header for all source files of the 'Example' target in the 'Example' project
  3
+//
  4
+
  5
+#import <Availability.h>
  6
+
  7
+#ifndef __IPHONE_4_0
  8
+#warning "This project uses features only available in iOS SDK 4.0 and later."
  9
+#endif
  10
+
  11
+#ifdef __OBJC__
  12
+    #import <UIKit/UIKit.h>
  13
+    #import <Foundation/Foundation.h>
  14
+#endif
19  Example/Example/SSAppDelegate.h
... ...
@@ -0,0 +1,19 @@
  1
+//
  2
+//  SSAppDelegate.h
  3
+//  Example
  4
+//
  5
+//  Created by Aaron Brethorst on 12/4/11.
  6
+//  Copyright (c) 2011 Structlab LLC. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+@class SSViewController;
  12
+
  13
+@interface SSAppDelegate : UIResponder <UIApplicationDelegate>
  14
+
  15
+@property (strong, nonatomic) UIWindow *window;
  16
+
  17
+@property (strong, nonatomic) SSViewController *viewController;
  18
+
  19
+@end
74  Example/Example/SSAppDelegate.m
... ...
@@ -0,0 +1,74 @@
  1
+//
  2
+//  SSAppDelegate.m
  3
+//  Example
  4
+//
  5
+//  Created by Aaron Brethorst on 12/4/11.
  6
+//  Copyright (c) 2011 Structlab LLC. All rights reserved.
  7
+//
  8
+
  9
+#import "SSAppDelegate.h"
  10
+
  11
+#import "SSViewController.h"
  12
+
  13
+@implementation SSAppDelegate
  14
+
  15
+@synthesize window = _window;
  16
+@synthesize viewController = _viewController;
  17
+
  18
+- (void)dealloc
  19
+{
  20
+    [_window release];
  21
+    [_viewController release];
  22
+    [super dealloc];
  23
+}
  24
+
  25
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  26
+{
  27
+    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
  28
+    // Override point for customization after application launch.
  29
+    self.viewController = [[[SSViewController alloc] initWithNibName:@"SSViewController" bundle:nil] autorelease];
  30
+    self.window.rootViewController = self.viewController;
  31
+    [self.window makeKeyAndVisible];
  32
+    return YES;
  33
+}
  34
+
  35
+- (void)applicationWillResignActive:(UIApplication *)application
  36
+{
  37
+    /*
  38
+     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.
  39
+     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.
  40
+     */
  41
+}
  42
+
  43
+- (void)applicationDidEnterBackground:(UIApplication *)application
  44
+{
  45
+    /*
  46
+     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. 
  47
+     If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  48
+     */
  49
+}
  50
+
  51
+- (void)applicationWillEnterForeground:(UIApplication *)application
  52
+{
  53
+    /*
  54
+     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.
  55
+     */
  56
+}
  57
+
  58
+- (void)applicationDidBecomeActive:(UIApplication *)application
  59
+{
  60
+    /*
  61
+     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.
  62
+     */
  63
+}
  64
+
  65
+- (void)applicationWillTerminate:(UIApplication *)application
  66
+{
  67
+    /*
  68
+     Called when the application is about to terminate.
  69
+     Save data if appropriate.
  70
+     See also applicationDidEnterBackground:.
  71
+     */
  72
+}
  73
+
  74
+@end
14  Example/Example/SSViewController.h
... ...
@@ -0,0 +1,14 @@
  1
+//
  2
+//  SSViewController.h
  3
+//  Example
  4
+//
  5
+//  Created by Aaron Brethorst on 12/4/11.
  6
+//  Copyright (c) 2011 Structlab LLC. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+#import "SSIndicatorLabel.h"
  11
+@interface SSViewController : UIViewController
  12
+@property(nonatomic,retain) IBOutlet SSIndicatorLabel *indicatorLabel;
  13
+- (IBAction)startLoading:(id)sender;
  14
+@end
78  Example/Example/SSViewController.m
... ...
@@ -0,0 +1,78 @@
  1
+//
  2
+//  SSViewController.m
  3
+//  Example
  4
+//
  5
+//  Created by Aaron Brethorst on 12/4/11.
  6
+//  Copyright (c) 2011 Structlab LLC. All rights reserved.
  7
+//
  8
+
  9
+#import "SSViewController.h"
  10
+
  11
+@implementation SSViewController
  12
+@synthesize indicatorLabel;
  13
+
  14
+- (void)didReceiveMemoryWarning
  15
+{
  16
+    [super didReceiveMemoryWarning];
  17
+    // Release any cached data, images, etc that aren't in use.
  18
+}
  19
+
  20
+#pragma mark - View lifecycle
  21
+
  22
+- (void)viewDidLoad
  23
+{
  24
+    [super viewDidLoad];
  25
+	
  26
+    self.indicatorLabel.backgroundColor = self.view.backgroundColor;
  27
+    self.indicatorLabel.textLabel.textColor = [UIColor whiteColor];
  28
+    self.indicatorLabel.center = CGPointMake(160, 240);
  29
+    self.indicatorLabel.textLabel.text = NSLocalizedString(@"Load Me!", @"");
  30
+    
  31
+    [self.view addSubview:self.indicatorLabel];
  32
+}
  33
+
  34
+- (IBAction)startLoading:(id)sender
  35
+{
  36
+    [self.indicatorLabel startWithText:NSLocalizedString(@"I'm Loading!", @"")];
  37
+    
  38
+    [NSTimer scheduledTimerWithTimeInterval:3.f target:self selector:@selector(finishLoading:) userInfo:nil repeats:NO];
  39
+}
  40
+
  41
+- (void)finishLoading:(NSTimer*)timer
  42
+{
  43
+    [self.indicatorLabel completeWithText:NSLocalizedString(@"I Finished Loading!", @"")];
  44
+}
  45
+
  46
+- (void)viewDidUnload
  47
+{
  48
+    [super viewDidUnload];
  49
+    self.indicatorLabel = nil;
  50
+}
  51
+
  52
+- (void)viewWillAppear:(BOOL)animated
  53
+{
  54
+    [super viewWillAppear:animated];
  55
+}
  56
+
  57
+- (void)viewDidAppear:(BOOL)animated
  58
+{
  59
+    [super viewDidAppear:animated];
  60
+}
  61
+
  62
+- (void)viewWillDisappear:(BOOL)animated
  63
+{
  64
+	[super viewWillDisappear:animated];
  65
+}
  66
+
  67
+- (void)viewDidDisappear:(BOOL)animated
  68
+{
  69
+	[super viewDidDisappear:animated];
  70
+}
  71
+
  72
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  73
+{
  74
+    // Return YES for supported orientations
  75
+    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  76
+}
  77
+
  78
+@end
2  Example/Example/en.lproj/InfoPlist.strings
... ...
@@ -0,0 +1,2 @@
  1
+/* Localized versions of Info.plist keys */
  2
+
4,627  Example/Example/en.lproj/SSViewController.xib
4627 additions, 0 deletions not shown
18  Example/Example/main.m
... ...
@@ -0,0 +1,18 @@
  1
+//
  2
+//  main.m
  3
+//  Example
  4
+//
  5
+//  Created by Aaron Brethorst on 12/4/11.
  6
+//  Copyright (c) 2011 Structlab LLC. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+#import "SSAppDelegate.h"
  12
+
  13
+int main(int argc, char *argv[])
  14
+{
  15
+    @autoreleasepool {
  16
+        return UIApplicationMain(argc, argv, nil, NSStringFromClass([SSAppDelegate class]));
  17
+    }
  18
+}
33  SSIndicatorLabel.m
@@ -11,6 +11,7 @@
11 11
 @interface SSIndicatorLabel (PrivateMethods)
12 12
 + (CGSize)indicatorSize;
13 13
 + (CGFloat)padding;
  14
+- (void)configureView;
14 15
 @end
15 16
 
16 17
 @implementation SSIndicatorLabel
@@ -59,21 +60,31 @@ - (void)dealloc {
59 60
 
60 61
 - (id)initWithFrame:(CGRect)rect {
61 62
 	if ((self = [super initWithFrame:rect])) {
62  
-		self.clipsToBounds = YES;
63  
-		
64  
-		_textLabel = [[UILabel alloc] initWithFrame:CGRectZero];
65  
-		[self addSubview:_textLabel];
66  
-		
67  
-		_activityIndicatorView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectZero];
68  
-		[_activityIndicatorView startAnimating];
69  
-		[self addSubview:_activityIndicatorView];
70  
-		
71  
-		_loading = NO;
72  
-		[self layoutSubviews];
  63
+        [self configureView];
73 64
 	}
74 65
 	return self;
75 66
 }
76 67
 
  68
+- (id)initWithCoder:(NSCoder *)aDecoder {
  69
+    if ((self = [super initWithCoder:aDecoder])) {
  70
+        [self configureView];
  71
+    }
  72
+    return self;
  73
+}
  74
+
  75
+- (void)configureView {
  76
+    self.clipsToBounds = YES;
  77
+
  78
+    _textLabel = [[UILabel alloc] initWithFrame:CGRectZero];
  79
+    [self addSubview:_textLabel];
  80
+
  81
+    _activityIndicatorView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectZero];
  82
+    [_activityIndicatorView startAnimating];
  83
+    [self addSubview:_activityIndicatorView];
  84
+
  85
+    _loading = NO;
  86
+    [self layoutSubviews];
  87
+}
77 88
 
78 89
 - (void)layoutSubviews {
79 90
 	CGRect rect = self.frame;

0 notes on commit 53ba678

Please sign in to comment.
Something went wrong with that request. Please try again.