diff --git a/Demo/Demo.xcodeproj/project.pbxproj b/Demo/Demo.xcodeproj/project.pbxproj new file mode 100755 index 0000000..6df6669 --- /dev/null +++ b/Demo/Demo.xcodeproj/project.pbxproj @@ -0,0 +1,481 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + ED2F618B137570CF001A1ABA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2F618A137570CF001A1ABA /* UIKit.framework */; }; + ED2F618D137570CF001A1ABA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2F618C137570CF001A1ABA /* Foundation.framework */; }; + ED2F618F137570CF001A1ABA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2F618E137570CF001A1ABA /* CoreGraphics.framework */; }; + ED2F6195137570CF001A1ABA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = ED2F6193137570CF001A1ABA /* InfoPlist.strings */; }; + ED2F6198137570CF001A1ABA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = ED2F6197137570CF001A1ABA /* main.m */; }; + ED2F619B137570CF001A1ABA /* DemoAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = ED2F619A137570CF001A1ABA /* DemoAppDelegate.m */; }; + ED2F619E137570CF001A1ABA /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = ED2F619C137570CF001A1ABA /* MainWindow.xib */; }; + ED2F61A1137570CF001A1ABA /* DemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = ED2F61A0137570CF001A1ABA /* DemoViewController.m */; }; + ED2F61A4137570CF001A1ABA /* DemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = ED2F61A2137570CF001A1ABA /* DemoViewController.xib */; }; + ED2F61AB137570CF001A1ABA /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2F618A137570CF001A1ABA /* UIKit.framework */; }; + ED2F61AC137570CF001A1ABA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2F618C137570CF001A1ABA /* Foundation.framework */; }; + ED2F61AD137570CF001A1ABA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2F618E137570CF001A1ABA /* CoreGraphics.framework */; }; + ED2F61D2137572AF001A1ABA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = ED2F61CC137572AF001A1ABA /* InfoPlist.strings */; }; + ED2F61D4137572AF001A1ABA /* XMLReaderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = ED2F61D1137572AF001A1ABA /* XMLReaderTests.m */; }; + ED2F61D81375734B001A1ABA /* XMLReader.m in Sources */ = {isa = PBXBuildFile; fileRef = ED2F61D71375734B001A1ABA /* XMLReader.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + ED2F61AE137570CF001A1ABA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = ED2F617D137570CF001A1ABA /* Project object */; + proxyType = 1; + remoteGlobalIDString = ED2F6185137570CF001A1ABA; + remoteInfo = Demo; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + ED2F6186137570CF001A1ABA /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + ED2F618A137570CF001A1ABA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + ED2F618C137570CF001A1ABA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + ED2F618E137570CF001A1ABA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + ED2F6192137570CF001A1ABA /* Demo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Demo-Info.plist"; sourceTree = ""; }; + ED2F6194137570CF001A1ABA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + ED2F6196137570CF001A1ABA /* Demo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Demo-Prefix.pch"; sourceTree = ""; }; + ED2F6197137570CF001A1ABA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + ED2F6199137570CF001A1ABA /* DemoAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DemoAppDelegate.h; sourceTree = ""; }; + ED2F619A137570CF001A1ABA /* DemoAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoAppDelegate.m; sourceTree = ""; }; + ED2F619D137570CF001A1ABA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = ""; }; + ED2F619F137570CF001A1ABA /* DemoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DemoViewController.h; sourceTree = ""; }; + ED2F61A0137570CF001A1ABA /* DemoViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoViewController.m; sourceTree = ""; }; + ED2F61A3137570CF001A1ABA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/DemoViewController.xib; sourceTree = ""; }; + ED2F61AA137570CF001A1ABA /* XMLReaderTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = XMLReaderTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; + ED2F61CD137572AF001A1ABA /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = XMLReaderTests/en.lproj/InfoPlist.strings; sourceTree = SOURCE_ROOT; }; + ED2F61CE137572AF001A1ABA /* XMLReaderTests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "XMLReaderTests-Info.plist"; path = "XMLReaderTests/XMLReaderTests-Info.plist"; sourceTree = SOURCE_ROOT; }; + ED2F61CF137572AF001A1ABA /* XMLReaderTests-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "XMLReaderTests-Prefix.pch"; path = "XMLReaderTests/XMLReaderTests-Prefix.pch"; sourceTree = SOURCE_ROOT; }; + ED2F61D0137572AF001A1ABA /* XMLReaderTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XMLReaderTests.h; path = XMLReaderTests/XMLReaderTests.h; sourceTree = SOURCE_ROOT; }; + ED2F61D1137572AF001A1ABA /* XMLReaderTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = XMLReaderTests.m; path = XMLReaderTests/XMLReaderTests.m; sourceTree = SOURCE_ROOT; }; + ED2F61D61375734B001A1ABA /* XMLReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XMLReader.h; path = ../XMLReader.h; sourceTree = ""; }; + ED2F61D71375734B001A1ABA /* XMLReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = XMLReader.m; path = ../XMLReader.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + ED2F6183137570CF001A1ABA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ED2F618B137570CF001A1ABA /* UIKit.framework in Frameworks */, + ED2F618D137570CF001A1ABA /* Foundation.framework in Frameworks */, + ED2F618F137570CF001A1ABA /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + ED2F61A6137570CF001A1ABA /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ED2F61AB137570CF001A1ABA /* UIKit.framework in Frameworks */, + ED2F61AC137570CF001A1ABA /* Foundation.framework in Frameworks */, + ED2F61AD137570CF001A1ABA /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + ED2F617B137570CF001A1ABA = { + isa = PBXGroup; + children = ( + ED2F61D513757334001A1ABA /* XMLReader */, + ED2F61B0137570CF001A1ABA /* XMLReaderTests */, + ED2F6190137570CF001A1ABA /* Demo */, + ED2F6189137570CF001A1ABA /* Frameworks */, + ED2F6187137570CF001A1ABA /* Products */, + ); + sourceTree = ""; + }; + ED2F6187137570CF001A1ABA /* Products */ = { + isa = PBXGroup; + children = ( + ED2F6186137570CF001A1ABA /* Demo.app */, + ED2F61AA137570CF001A1ABA /* XMLReaderTests.octest */, + ); + name = Products; + sourceTree = ""; + }; + ED2F6189137570CF001A1ABA /* Frameworks */ = { + isa = PBXGroup; + children = ( + ED2F618A137570CF001A1ABA /* UIKit.framework */, + ED2F618C137570CF001A1ABA /* Foundation.framework */, + ED2F618E137570CF001A1ABA /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + ED2F6190137570CF001A1ABA /* Demo */ = { + isa = PBXGroup; + children = ( + ED2F6199137570CF001A1ABA /* DemoAppDelegate.h */, + ED2F619A137570CF001A1ABA /* DemoAppDelegate.m */, + ED2F619F137570CF001A1ABA /* DemoViewController.h */, + ED2F61A0137570CF001A1ABA /* DemoViewController.m */, + ED2F6191137570CF001A1ABA /* Supporting Files */, + ); + path = Demo; + sourceTree = ""; + }; + ED2F6191137570CF001A1ABA /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ED2F61D913757371001A1ABA /* XIB */, + ED2F6192137570CF001A1ABA /* Demo-Info.plist */, + ED2F6193137570CF001A1ABA /* InfoPlist.strings */, + ED2F6196137570CF001A1ABA /* Demo-Prefix.pch */, + ED2F6197137570CF001A1ABA /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + ED2F61B0137570CF001A1ABA /* XMLReaderTests */ = { + isa = PBXGroup; + children = ( + ED2F61D0137572AF001A1ABA /* XMLReaderTests.h */, + ED2F61D1137572AF001A1ABA /* XMLReaderTests.m */, + ED2F61B1137570CF001A1ABA /* Supporting Files */, + ); + name = XMLReaderTests; + path = DemoTests; + sourceTree = ""; + }; + ED2F61B1137570CF001A1ABA /* Supporting Files */ = { + isa = PBXGroup; + children = ( + ED2F61CC137572AF001A1ABA /* InfoPlist.strings */, + ED2F61CE137572AF001A1ABA /* XMLReaderTests-Info.plist */, + ED2F61CF137572AF001A1ABA /* XMLReaderTests-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + ED2F61D513757334001A1ABA /* XMLReader */ = { + isa = PBXGroup; + children = ( + ED2F61D61375734B001A1ABA /* XMLReader.h */, + ED2F61D71375734B001A1ABA /* XMLReader.m */, + ); + name = XMLReader; + sourceTree = ""; + }; + ED2F61D913757371001A1ABA /* XIB */ = { + isa = PBXGroup; + children = ( + ED2F61A2137570CF001A1ABA /* DemoViewController.xib */, + ED2F619C137570CF001A1ABA /* MainWindow.xib */, + ); + name = XIB; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + ED2F6185137570CF001A1ABA /* Demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = ED2F61BD137570CF001A1ABA /* Build configuration list for PBXNativeTarget "Demo" */; + buildPhases = ( + ED2F6182137570CF001A1ABA /* Sources */, + ED2F6183137570CF001A1ABA /* Frameworks */, + ED2F6184137570CF001A1ABA /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Demo; + productName = Demo; + productReference = ED2F6186137570CF001A1ABA /* Demo.app */; + productType = "com.apple.product-type.application"; + }; + ED2F61A9137570CF001A1ABA /* XMLReaderTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = ED2F61C0137570CF001A1ABA /* Build configuration list for PBXNativeTarget "XMLReaderTests" */; + buildPhases = ( + ED2F61A5137570CF001A1ABA /* Sources */, + ED2F61A6137570CF001A1ABA /* Frameworks */, + ED2F61A7137570CF001A1ABA /* Resources */, + ED2F61A8137570CF001A1ABA /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + ED2F61AF137570CF001A1ABA /* PBXTargetDependency */, + ); + name = XMLReaderTests; + productName = DemoTests; + productReference = ED2F61AA137570CF001A1ABA /* XMLReaderTests.octest */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + ED2F617D137570CF001A1ABA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = ED2F6180137570CF001A1ABA /* Build configuration list for PBXProject "Demo" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = ED2F617B137570CF001A1ABA; + productRefGroup = ED2F6187137570CF001A1ABA /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + ED2F6185137570CF001A1ABA /* Demo */, + ED2F61A9137570CF001A1ABA /* XMLReaderTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + ED2F6184137570CF001A1ABA /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ED2F6195137570CF001A1ABA /* InfoPlist.strings in Resources */, + ED2F619E137570CF001A1ABA /* MainWindow.xib in Resources */, + ED2F61A4137570CF001A1ABA /* DemoViewController.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + ED2F61A7137570CF001A1ABA /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ED2F61D2137572AF001A1ABA /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + ED2F61A8137570CF001A1ABA /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + ED2F6182137570CF001A1ABA /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ED2F6198137570CF001A1ABA /* main.m in Sources */, + ED2F619B137570CF001A1ABA /* DemoAppDelegate.m in Sources */, + ED2F61A1137570CF001A1ABA /* DemoViewController.m in Sources */, + ED2F61D81375734B001A1ABA /* XMLReader.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + ED2F61A5137570CF001A1ABA /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ED2F61D4137572AF001A1ABA /* XMLReaderTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + ED2F61AF137570CF001A1ABA /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = ED2F6185137570CF001A1ABA /* Demo */; + targetProxy = ED2F61AE137570CF001A1ABA /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + ED2F6193137570CF001A1ABA /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + ED2F6194137570CF001A1ABA /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + ED2F619C137570CF001A1ABA /* MainWindow.xib */ = { + isa = PBXVariantGroup; + children = ( + ED2F619D137570CF001A1ABA /* en */, + ); + name = MainWindow.xib; + sourceTree = ""; + }; + ED2F61A2137570CF001A1ABA /* DemoViewController.xib */ = { + isa = PBXVariantGroup; + children = ( + ED2F61A3137570CF001A1ABA /* en */, + ); + name = DemoViewController.xib; + sourceTree = ""; + }; + ED2F61CC137572AF001A1ABA /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + ED2F61CD137572AF001A1ABA /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + ED2F61BB137570CF001A1ABA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = DEBUG; + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + SDKROOT = iphoneos; + }; + name = Debug; + }; + ED2F61BC137570CF001A1ABA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 4.3; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + }; + name = Release; + }; + ED2F61BE137570CF001A1ABA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Demo/Demo-Prefix.pch"; + INFOPLIST_FILE = "Demo/Demo-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + ED2F61BF137570CF001A1ABA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Demo/Demo-Prefix.pch"; + INFOPLIST_FILE = "Demo/Demo-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + VALIDATE_PRODUCT = YES; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + ED2F61C1137570CF001A1ABA /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(DEVELOPER_LIBRARY_DIR)/Frameworks", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "XMLReaderTests/XMLReaderTests-Prefix.pch"; + INFOPLIST_FILE = "XMLReaderTests/XMLReaderTests-Info.plist"; + OTHER_LDFLAGS = ( + "-framework", + SenTestingKit, + ); + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + ED2F61C2137570CF001A1ABA /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(DEVELOPER_LIBRARY_DIR)/Frameworks", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "XMLReaderTests/XMLReaderTests-Prefix.pch"; + INFOPLIST_FILE = "XMLReaderTests/XMLReaderTests-Info.plist"; + OTHER_LDFLAGS = ( + "-framework", + SenTestingKit, + ); + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + ED2F6180137570CF001A1ABA /* Build configuration list for PBXProject "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + ED2F61BB137570CF001A1ABA /* Debug */, + ED2F61BC137570CF001A1ABA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + ED2F61BD137570CF001A1ABA /* Build configuration list for PBXNativeTarget "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + ED2F61BE137570CF001A1ABA /* Debug */, + ED2F61BF137570CF001A1ABA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + ED2F61C0137570CF001A1ABA /* Build configuration list for PBXNativeTarget "XMLReaderTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + ED2F61C1137570CF001A1ABA /* Debug */, + ED2F61C2137570CF001A1ABA /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = ED2F617D137570CF001A1ABA /* Project object */; +} diff --git a/Demo/Demo/Demo-Info.plist b/Demo/Demo/Demo-Info.plist new file mode 100755 index 0000000..182e4a5 --- /dev/null +++ b/Demo/Demo/Demo-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + com.xmlreader.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + NSMainNibFile + MainWindow + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Demo/Demo/Demo-Prefix.pch b/Demo/Demo/Demo-Prefix.pch new file mode 100755 index 0000000..e8dab0f --- /dev/null +++ b/Demo/Demo/Demo-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'Demo' target in the 'Demo' project +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iPhone SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Demo/Demo/DemoAppDelegate.h b/Demo/Demo/DemoAppDelegate.h new file mode 100755 index 0000000..5d2e286 --- /dev/null +++ b/Demo/Demo/DemoAppDelegate.h @@ -0,0 +1,21 @@ +// +// DemoAppDelegate.h +// Demo +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import + +@class DemoViewController; + +@interface DemoAppDelegate : NSObject { + +} + +@property (nonatomic, retain) IBOutlet UIWindow *window; + +@property (nonatomic, retain) IBOutlet DemoViewController *viewController; + +@end diff --git a/Demo/Demo/DemoAppDelegate.m b/Demo/Demo/DemoAppDelegate.m new file mode 100755 index 0000000..5871926 --- /dev/null +++ b/Demo/Demo/DemoAppDelegate.m @@ -0,0 +1,75 @@ +// +// DemoAppDelegate.m +// Demo +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import "DemoAppDelegate.h" + +#import "DemoViewController.h" + +@implementation DemoAppDelegate + + +@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 diff --git a/Demo/Demo/DemoViewController.h b/Demo/Demo/DemoViewController.h new file mode 100755 index 0000000..2904e14 --- /dev/null +++ b/Demo/Demo/DemoViewController.h @@ -0,0 +1,19 @@ +// +// DemoViewController.h +// Demo +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import + +@interface DemoViewController : UIViewController +{ + NSDictionary *_xmlDictionary; + UITableView *_tableView; +} + +@property (nonatomic, retain) IBOutlet UITableView *tableView; + +@end diff --git a/Demo/Demo/DemoViewController.m b/Demo/Demo/DemoViewController.m new file mode 100755 index 0000000..64f91ab --- /dev/null +++ b/Demo/Demo/DemoViewController.m @@ -0,0 +1,98 @@ +// +// DemoViewController.m +// Demo +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import "DemoViewController.h" +#import "XMLReader.h" + +@implementation DemoViewController + +@synthesize tableView=_tableView; + +- (void)dealloc +{ + [_tableView release]; + [_xmlDictionary release]; + + [super dealloc]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; +} + +#pragma mark - View lifecycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + + // Grab some XML data from Twitter + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://twitter.com/status/user_timeline/github"]]; + + NSError *error = nil; + NSURLResponse *response = nil; + + // Synchronous isn't ideal, but simplifies the code for the Demo + NSData *xmlData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; + + // Parse the XML Data into an NSDictionary + _xmlDictionary = [[XMLReader dictionaryForXMLData:xmlData error:&error] retain]; + + [self.tableView reloadData]; +} + +- (void)viewDidUnload +{ + [super viewDidUnload]; + + self.tableView = nil; +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return YES; +} + +#pragma mark - UITableViewDataSource + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return [[_xmlDictionary retrieveForPath:@"statuses.status"] count]; +} + +- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section +{ + return @"@github status feed"; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *cellIdentifier = @"StatusCell"; + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; + + if (cell == nil) + { + cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellIdentifier] autorelease]; + cell.textLabel.font = [UIFont systemFontOfSize:12]; + cell.textLabel.numberOfLines = 2; + cell.detailTextLabel.font = [UIFont systemFontOfSize:10]; + cell.selectionStyle = UITableViewCellEditingStyleNone; + } + + // Get the 'status' for the relevant row + NSDictionary *status = [_xmlDictionary retrieveForPath:[NSString stringWithFormat:@"statuses.status.%d", indexPath.row]]; + + cell.textLabel.text = [status objectForKey:@"text"]; + cell.detailTextLabel.text = [status objectForKey:@"created_at"]; + + return cell; +} + +@end diff --git a/Demo/Demo/en.lproj/DemoViewController.xib b/Demo/Demo/en.lproj/DemoViewController.xib new file mode 100755 index 0000000..d97dae3 --- /dev/null +++ b/Demo/Demo/en.lproj/DemoViewController.xib @@ -0,0 +1,221 @@ + + + + 1056 + 10J869 + 1305 + 1038.35 + 461.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 300 + + + YES + IBProxyObject + IBUIView + IBUITableView + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + + 274 + + YES + + + 274 + {320, 460} + + + + 3 + MQA + + YES + IBCocoaTouchFramework + YES + 1 + 0 + YES + 44 + 22 + 22 + + + {{0, 20}, {320, 460}} + + + + + 3 + MC43NQA + + 2 + + + NO + + IBCocoaTouchFramework + + + + + YES + + + view + + + + 7 + + + + tableView + + + + 9 + + + + dataSource + + + + 10 + + + + delegate + + + + 11 + + + + + YES + + 0 + + + + + + -1 + + + File's Owner + + + -2 + + + + + 6 + + + YES + + + + + + 8 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 6.IBEditorWindowLastContentRect + 6.IBPluginDependency + 8.IBPluginDependency + + + YES + DemoViewController + UIResponder + {{239, 654}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + + + + YES + + + + + 11 + + + + YES + + DemoViewController + UIViewController + + tableView + UITableView + + + tableView + + tableView + UITableView + + + + IBProjectSource + ./Classes/DemoViewController.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + 3 + 300 + + diff --git a/Demo/Demo/en.lproj/InfoPlist.strings b/Demo/Demo/en.lproj/InfoPlist.strings new file mode 100755 index 0000000..477b28f --- /dev/null +++ b/Demo/Demo/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Demo/Demo/en.lproj/MainWindow.xib b/Demo/Demo/en.lproj/MainWindow.xib new file mode 100755 index 0000000..30ba908 --- /dev/null +++ b/Demo/Demo/en.lproj/MainWindow.xib @@ -0,0 +1,444 @@ + + + + 1024 + 10D571 + 786 + 1038.29 + 460.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 112 + + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + IBCocoaTouchFramework + + + IBFirstResponder + IBCocoaTouchFramework + + + IBCocoaTouchFramework + + + DemoViewController + + + 1 + + IBCocoaTouchFramework + NO + + + + 292 + {320, 480} + + 1 + MSAxIDEAA + + NO + NO + + IBCocoaTouchFramework + YES + + + + + YES + + + delegate + + + + 4 + + + + viewController + + + + 11 + + + + window + + + + 14 + + + + + YES + + 0 + + + + + + -1 + + + File's Owner + + + 3 + + + Demo App Delegate + + + -2 + + + + + 10 + + + + + 12 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 10.CustomClassName + 10.IBEditorWindowLastContentRect + 10.IBPluginDependency + 12.IBEditorWindowLastContentRect + 12.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + + + YES + UIApplication + UIResponder + DemoViewController + {{234, 376}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + {{525, 346}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + DemoAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + YES + + + + + YES + + + YES + + + + 15 + + + + YES + + UIWindow + UIView + + IBUserSource + + + + + DemoAppDelegate + NSObject + + YES + + YES + viewController + window + + + YES + DemoViewController + UIWindow + + + + YES + + YES + viewController + window + + + YES + + viewController + DemoViewController + + + window + UIWindow + + + + + IBProjectSource + DemoAppDelegate.h + + + + DemoAppDelegate + NSObject + + IBUserSource + + + + + DemoViewController + UIViewController + + IBProjectSource + DemoViewController.h + + + + + YES + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIAccessibility.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UINibLoading.h + + + + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UIResponder.h + + + + UIApplication + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIApplication.h + + + + UIResponder + NSObject + + + + UISearchBar + UIView + + IBFrameworkSource + UIKit.framework/Headers/UISearchBar.h + + + + UISearchDisplayController + NSObject + + IBFrameworkSource + UIKit.framework/Headers/UISearchDisplayController.h + + + + UIView + + IBFrameworkSource + UIKit.framework/Headers/UITextField.h + + + + UIView + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIView.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UINavigationController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UIPopoverController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UISplitViewController.h + + + + UIViewController + + IBFrameworkSource + UIKit.framework/Headers/UITabBarController.h + + + + UIViewController + UIResponder + + IBFrameworkSource + UIKit.framework/Headers/UIViewController.h + + + + UIWindow + UIView + + IBFrameworkSource + UIKit.framework/Headers/UIWindow.h + + + + + 0 + IBCocoaTouchFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + Demo.xcodeproj + 3 + 112 + + diff --git a/Demo/Demo/main.m b/Demo/Demo/main.m new file mode 100755 index 0000000..5c737c0 --- /dev/null +++ b/Demo/Demo/main.m @@ -0,0 +1,17 @@ +// +// main.m +// Demo +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import + +int main(int argc, char *argv[]) +{ + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + int retVal = UIApplicationMain(argc, argv, nil, nil); + [pool release]; + return retVal; +} diff --git a/Demo/XMLReaderTests/XMLReaderTests-Info.plist b/Demo/XMLReaderTests/XMLReaderTests-Info.plist new file mode 100755 index 0000000..bd01839 --- /dev/null +++ b/Demo/XMLReaderTests/XMLReaderTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.xmlreader.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Demo/XMLReaderTests/XMLReaderTests-Prefix.pch b/Demo/XMLReaderTests/XMLReaderTests-Prefix.pch new file mode 100755 index 0000000..4a3b846 --- /dev/null +++ b/Demo/XMLReaderTests/XMLReaderTests-Prefix.pch @@ -0,0 +1,7 @@ +// +// Prefix header for all source files of the 'DemoTests' target in the 'DemoTests' project +// + +#ifdef __OBJC__ + #import +#endif diff --git a/Demo/XMLReaderTests/XMLReaderTests.h b/Demo/XMLReaderTests/XMLReaderTests.h new file mode 100755 index 0000000..2be8005 --- /dev/null +++ b/Demo/XMLReaderTests/XMLReaderTests.h @@ -0,0 +1,17 @@ +// +// XMLReaderTests.h +// XMLReaderTests +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import + +@interface XMLReaderTests : SenTestCase +{ +@private + +} + +@end diff --git a/Demo/XMLReaderTests/XMLReaderTests.m b/Demo/XMLReaderTests/XMLReaderTests.m new file mode 100755 index 0000000..fc12de2 --- /dev/null +++ b/Demo/XMLReaderTests/XMLReaderTests.m @@ -0,0 +1,32 @@ +// +// XMLReaderTests.m +// XMLReaderTests +// +// Created by David Perry on 07/05/2011. +// Copyright 2011 __MyCompanyName__. All rights reserved. +// + +#import "XMLReaderTests.h" + +@implementation XMLReaderTests + +- (void)setUp +{ + [super setUp]; + + // Set-up code here. +} + +- (void)tearDown +{ + // Tear-down code here. + + [super tearDown]; +} + +- (void)testExample +{ + STFail(@"Unit tests are not implemented yet in DemoTests"); +} + +@end diff --git a/Demo/XMLReaderTests/en.lproj/InfoPlist.strings b/Demo/XMLReaderTests/en.lproj/InfoPlist.strings new file mode 100755 index 0000000..477b28f --- /dev/null +++ b/Demo/XMLReaderTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/XMLReader.h b/XMLReader.h old mode 100644 new mode 100755 diff --git a/XMLReader.m b/XMLReader.m old mode 100644 new mode 100755