diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial.xcodeproj/project.pbxproj b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial.xcodeproj/project.pbxproj new file mode 100644 index 0000000..9e404bd --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial.xcodeproj/project.pbxproj @@ -0,0 +1,440 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + B36B29BD15D4DF4B006719DC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29BC15D4DF4B006719DC /* UIKit.framework */; }; + B36B29BF15D4DF4B006719DC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29BE15D4DF4B006719DC /* Foundation.framework */; }; + B36B29C115D4DF4B006719DC /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29C015D4DF4B006719DC /* CoreGraphics.framework */; }; + B36B29C715D4DF4B006719DC /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B36B29C515D4DF4B006719DC /* InfoPlist.strings */; }; + B36B29C915D4DF4B006719DC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B36B29C815D4DF4B006719DC /* main.m */; }; + B36B29CD15D4DF4B006719DC /* SFAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B36B29CC15D4DF4B006719DC /* SFAppDelegate.m */; }; + B36B29D515D4DF4B006719DC /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29D415D4DF4B006719DC /* SenTestingKit.framework */; }; + B36B29D615D4DF4B006719DC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29BC15D4DF4B006719DC /* UIKit.framework */; }; + B36B29D715D4DF4B006719DC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29BE15D4DF4B006719DC /* Foundation.framework */; }; + B36B29DF15D4DF4B006719DC /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = B36B29DD15D4DF4B006719DC /* InfoPlist.strings */; }; + B36B29E215D4DF4B006719DC /* SFAddressbookTutorialTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B36B29E115D4DF4B006719DC /* SFAddressbookTutorialTests.m */; }; + B36B29ED15D4E046006719DC /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29EB15D4E046006719DC /* AddressBook.framework */; }; + B36B29EE15D4E046006719DC /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B36B29EC15D4E046006719DC /* AddressBookUI.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + B36B29D815D4DF4B006719DC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = B36B29AF15D4DF4B006719DC /* Project object */; + proxyType = 1; + remoteGlobalIDString = B36B29B715D4DF4B006719DC; + remoteInfo = SFAddressbookTutorial; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + B36B29B815D4DF4B006719DC /* SFAddressbookTutorial.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SFAddressbookTutorial.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B36B29BC15D4DF4B006719DC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + B36B29BE15D4DF4B006719DC /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + B36B29C015D4DF4B006719DC /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + B36B29C415D4DF4B006719DC /* SFAddressbookTutorial-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SFAddressbookTutorial-Info.plist"; sourceTree = ""; }; + B36B29C615D4DF4B006719DC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + B36B29C815D4DF4B006719DC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + B36B29CA15D4DF4B006719DC /* SFAddressbookTutorial-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SFAddressbookTutorial-Prefix.pch"; sourceTree = ""; }; + B36B29CB15D4DF4B006719DC /* SFAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SFAppDelegate.h; sourceTree = ""; }; + B36B29CC15D4DF4B006719DC /* SFAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SFAppDelegate.m; sourceTree = ""; }; + B36B29D315D4DF4B006719DC /* SFAddressbookTutorialTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SFAddressbookTutorialTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; + B36B29D415D4DF4B006719DC /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + B36B29DC15D4DF4B006719DC /* SFAddressbookTutorialTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SFAddressbookTutorialTests-Info.plist"; sourceTree = ""; }; + B36B29DE15D4DF4B006719DC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + B36B29E015D4DF4B006719DC /* SFAddressbookTutorialTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SFAddressbookTutorialTests.h; sourceTree = ""; }; + B36B29E115D4DF4B006719DC /* SFAddressbookTutorialTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SFAddressbookTutorialTests.m; sourceTree = ""; }; + B36B29EB15D4E046006719DC /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; }; + B36B29EC15D4E046006719DC /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B36B29B515D4DF4B006719DC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B36B29BD15D4DF4B006719DC /* UIKit.framework in Frameworks */, + B36B29BF15D4DF4B006719DC /* Foundation.framework in Frameworks */, + B36B29C115D4DF4B006719DC /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B36B29CF15D4DF4B006719DC /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B36B29ED15D4E046006719DC /* AddressBook.framework in Frameworks */, + B36B29EE15D4E046006719DC /* AddressBookUI.framework in Frameworks */, + B36B29D515D4DF4B006719DC /* SenTestingKit.framework in Frameworks */, + B36B29D615D4DF4B006719DC /* UIKit.framework in Frameworks */, + B36B29D715D4DF4B006719DC /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B36B29AD15D4DF4B006719DC = { + isa = PBXGroup; + children = ( + B36B29EB15D4E046006719DC /* AddressBook.framework */, + B36B29EC15D4E046006719DC /* AddressBookUI.framework */, + B36B29C215D4DF4B006719DC /* SFAddressbookTutorial */, + B36B29DA15D4DF4B006719DC /* SFAddressbookTutorialTests */, + B36B29BB15D4DF4B006719DC /* Frameworks */, + B36B29B915D4DF4B006719DC /* Products */, + ); + sourceTree = ""; + }; + B36B29B915D4DF4B006719DC /* Products */ = { + isa = PBXGroup; + children = ( + B36B29B815D4DF4B006719DC /* SFAddressbookTutorial.app */, + B36B29D315D4DF4B006719DC /* SFAddressbookTutorialTests.octest */, + ); + name = Products; + sourceTree = ""; + }; + B36B29BB15D4DF4B006719DC /* Frameworks */ = { + isa = PBXGroup; + children = ( + B36B29BC15D4DF4B006719DC /* UIKit.framework */, + B36B29BE15D4DF4B006719DC /* Foundation.framework */, + B36B29C015D4DF4B006719DC /* CoreGraphics.framework */, + B36B29D415D4DF4B006719DC /* SenTestingKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + B36B29C215D4DF4B006719DC /* SFAddressbookTutorial */ = { + isa = PBXGroup; + children = ( + B36B29CB15D4DF4B006719DC /* SFAppDelegate.h */, + B36B29CC15D4DF4B006719DC /* SFAppDelegate.m */, + B36B29C315D4DF4B006719DC /* Supporting Files */, + ); + path = SFAddressbookTutorial; + sourceTree = ""; + }; + B36B29C315D4DF4B006719DC /* Supporting Files */ = { + isa = PBXGroup; + children = ( + B36B29C415D4DF4B006719DC /* SFAddressbookTutorial-Info.plist */, + B36B29C515D4DF4B006719DC /* InfoPlist.strings */, + B36B29C815D4DF4B006719DC /* main.m */, + B36B29CA15D4DF4B006719DC /* SFAddressbookTutorial-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + B36B29DA15D4DF4B006719DC /* SFAddressbookTutorialTests */ = { + isa = PBXGroup; + children = ( + B36B29E015D4DF4B006719DC /* SFAddressbookTutorialTests.h */, + B36B29E115D4DF4B006719DC /* SFAddressbookTutorialTests.m */, + B36B29DB15D4DF4B006719DC /* Supporting Files */, + ); + path = SFAddressbookTutorialTests; + sourceTree = ""; + }; + B36B29DB15D4DF4B006719DC /* Supporting Files */ = { + isa = PBXGroup; + children = ( + B36B29DC15D4DF4B006719DC /* SFAddressbookTutorialTests-Info.plist */, + B36B29DD15D4DF4B006719DC /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B36B29B715D4DF4B006719DC /* SFAddressbookTutorial */ = { + isa = PBXNativeTarget; + buildConfigurationList = B36B29E515D4DF4B006719DC /* Build configuration list for PBXNativeTarget "SFAddressbookTutorial" */; + buildPhases = ( + B36B29B415D4DF4B006719DC /* Sources */, + B36B29B515D4DF4B006719DC /* Frameworks */, + B36B29B615D4DF4B006719DC /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SFAddressbookTutorial; + productName = SFAddressbookTutorial; + productReference = B36B29B815D4DF4B006719DC /* SFAddressbookTutorial.app */; + productType = "com.apple.product-type.application"; + }; + B36B29D215D4DF4B006719DC /* SFAddressbookTutorialTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = B36B29E815D4DF4B006719DC /* Build configuration list for PBXNativeTarget "SFAddressbookTutorialTests" */; + buildPhases = ( + B36B29CE15D4DF4B006719DC /* Sources */, + B36B29CF15D4DF4B006719DC /* Frameworks */, + B36B29D015D4DF4B006719DC /* Resources */, + B36B29D115D4DF4B006719DC /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + B36B29D915D4DF4B006719DC /* PBXTargetDependency */, + ); + name = SFAddressbookTutorialTests; + productName = SFAddressbookTutorialTests; + productReference = B36B29D315D4DF4B006719DC /* SFAddressbookTutorialTests.octest */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B36B29AF15D4DF4B006719DC /* Project object */ = { + isa = PBXProject; + attributes = { + CLASSPREFIX = SF; + LastUpgradeCheck = 0440; + ORGANIZATIONNAME = saltfactory.net; + }; + buildConfigurationList = B36B29B215D4DF4B006719DC /* Build configuration list for PBXProject "SFAddressbookTutorial" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = B36B29AD15D4DF4B006719DC; + productRefGroup = B36B29B915D4DF4B006719DC /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B36B29B715D4DF4B006719DC /* SFAddressbookTutorial */, + B36B29D215D4DF4B006719DC /* SFAddressbookTutorialTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B36B29B615D4DF4B006719DC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B36B29C715D4DF4B006719DC /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B36B29D015D4DF4B006719DC /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B36B29DF15D4DF4B006719DC /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + B36B29D115D4DF4B006719DC /* 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 */ + B36B29B415D4DF4B006719DC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B36B29C915D4DF4B006719DC /* main.m in Sources */, + B36B29CD15D4DF4B006719DC /* SFAppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B36B29CE15D4DF4B006719DC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B36B29E215D4DF4B006719DC /* SFAddressbookTutorialTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + B36B29D915D4DF4B006719DC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = B36B29B715D4DF4B006719DC /* SFAddressbookTutorial */; + targetProxy = B36B29D815D4DF4B006719DC /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + B36B29C515D4DF4B006719DC /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + B36B29C615D4DF4B006719DC /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + B36B29DD15D4DF4B006719DC /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + B36B29DE15D4DF4B006719DC /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + B36B29E315D4DF4B006719DC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = 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_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + SDKROOT = iphoneos; + }; + name = Debug; + }; + B36B29E415D4DF4B006719DC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + B36B29E615D4DF4B006719DC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch"; + INFOPLIST_FILE = "SFAddressbookTutorial/SFAddressbookTutorial-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + B36B29E715D4DF4B006719DC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch"; + INFOPLIST_FILE = "SFAddressbookTutorial/SFAddressbookTutorial-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + B36B29E915D4DF4B006719DC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SFAddressbookTutorial.app/SFAddressbookTutorial"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch"; + INFOPLIST_FILE = "SFAddressbookTutorialTests/SFAddressbookTutorialTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + B36B29EA15D4DF4B006719DC /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SFAddressbookTutorial.app/SFAddressbookTutorial"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch"; + INFOPLIST_FILE = "SFAddressbookTutorialTests/SFAddressbookTutorialTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B36B29B215D4DF4B006719DC /* Build configuration list for PBXProject "SFAddressbookTutorial" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B36B29E315D4DF4B006719DC /* Debug */, + B36B29E415D4DF4B006719DC /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B36B29E515D4DF4B006719DC /* Build configuration list for PBXNativeTarget "SFAddressbookTutorial" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B36B29E615D4DF4B006719DC /* Debug */, + B36B29E715D4DF4B006719DC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + B36B29E815D4DF4B006719DC /* Build configuration list for PBXNativeTarget "SFAddressbookTutorialTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B36B29E915D4DF4B006719DC /* Debug */, + B36B29EA15D4DF4B006719DC /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = B36B29AF15D4DF4B006719DC /* Project object */; +} diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAddressbookTutorial-Info.plist b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAddressbookTutorial-Info.plist new file mode 100644 index 0000000..31883c4 --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAddressbookTutorial-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + net.saltfactory.tutorial.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch new file mode 100644 index 0000000..7f07ebc --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAddressbookTutorial-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'SFAddressbookTutorial' target in the 'SFAddressbookTutorial' project +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAppDelegate.h b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAppDelegate.h new file mode 100644 index 0000000..9179e11 --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAppDelegate.h @@ -0,0 +1,15 @@ +// +// SFAppDelegate.h +// SFAddressbookTutorial +// +// Created by saltfactory on 8/10/12. +// Copyright (c) 2012 saltfactory.net. All rights reserved. +// + +#import + +@interface SFAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAppDelegate.m b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAppDelegate.m new file mode 100644 index 0000000..6bbee09 --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/SFAppDelegate.m @@ -0,0 +1,49 @@ +// +// SFAppDelegate.m +// SFAddressbookTutorial +// +// Created by saltfactory on 8/10/12. +// Copyright (c) 2012 saltfactory.net. All rights reserved. +// + +#import "SFAppDelegate.h" + +@implementation SFAppDelegate + +- (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 diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/en.lproj/InfoPlist.strings b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/main.m b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/main.m new file mode 100644 index 0000000..575123d --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorial/main.m @@ -0,0 +1,18 @@ +// +// main.m +// SFAddressbookTutorial +// +// Created by saltfactory on 8/10/12. +// Copyright (c) 2012 saltfactory.net. All rights reserved. +// + +#import + +#import "SFAppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([SFAppDelegate class])); + } +} diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests-Info.plist b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests-Info.plist new file mode 100644 index 0000000..135a71a --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + net.saltfactory.tutorial.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests.h b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests.h new file mode 100644 index 0000000..22d82ec --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests.h @@ -0,0 +1,13 @@ +// +// SFAddressbookTutorialTests.h +// SFAddressbookTutorialTests +// +// Created by saltfactory on 8/10/12. +// Copyright (c) 2012 saltfactory.net. All rights reserved. +// + +#import + +@interface SFAddressbookTutorialTests : SenTestCase + +@end diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests.m b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests.m new file mode 100644 index 0000000..417afbf --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/SFAddressbookTutorialTests.m @@ -0,0 +1,135 @@ +// +// SFAddressbookTutorialTests.m +// SFAddressbookTutorialTests +// +// Created by saltfactory on 8/10/12. +// Copyright (c) 2012 saltfactory.net. All rights reserved. +// + +#import "SFAddressbookTutorialTests.h" +#import + +@implementation SFAddressbookTutorialTests + +- (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 SFAddressbookTutorialTests"); +} + +- (void)testSelectAllGroups +{ + ABAddressBookRef addressBookRef = ABAddressBookCreate(); + STAssertTrue(addressBookRef != NULL, @"addressBookRef is NULL"); + + CFArrayRef groupsRef = ABAddressBookCopyArrayOfAllGroups(addressBookRef); + STAssertTrue(groupsRef != NULL, @"groupsRef is NULL"); + + CFIndex numberOfGroup = ABAddressBookGetGroupCount(addressBookRef); + STAssertTrue(numberOfGroup != 0, @"groupsRef count is 0"); + + + for(int i = 0 ; i < numberOfGroup ; i++) { + ABRecordRef groupRef = CFArrayGetValueAtIndex(groupsRef, i); + + CFStringRef groupNameRef = ABRecordCopyValue(groupRef, kABGroupNameProperty); + + NSInteger groupId = ABRecordGetRecordID(groupRef); + NSLog(@"groupId : %d", groupId); + + if (groupNameRef != NULL) { + NSLog(@"groupName : %@", (__bridge NSString *)groupNameRef); + CFRelease(groupNameRef); + } + + } + + CFRelease(groupsRef); + + CFRelease(addressBookRef); +} + + +// +// group.groupId = ABRecordGetRecordID(groupRef); +// +// CFArrayRef membersOfGroup = ABGroupCopyArrayOfAllMembers(groupRef); +// if (membersOfGroup == NULL) { +// [group setCountOfMember:0]; +// } +// else { +// [group setCountOfMember:CFArrayGetCount(membersOfGroup)]; +// CFRelease(membersOfGroup); +// } +// [groupArray addObject:group]; + + +- (void)testCreateGroup +{ + CFErrorRef errorRef = NULL; + ABAddressBookRef addressBookRef = ABAddressBookCreate(); + STAssertTrue(addressBookRef != NULL, @"addressBookRef is NULL"); + + ABRecordRef groupRef = ABGroupCreate(); + STAssertTrue(groupRef != NULL, @"groupRef is NULL"); + + CFStringRef name = (CFStringRef)@"테스트그룹"; + ABRecordSetValue(groupRef, kABGroupNameProperty, name, &errorRef); + + STAssertTrue(errorRef == NULL, @"error is not NULL"); + + ABAddressBookAddRecord(addressBookRef, groupRef, &errorRef); + ABAddressBookSave(addressBookRef, &errorRef); + + NSInteger groupId = ABRecordGetRecordID(groupRef); + STAssertTrue(groupId > 0, @"group is not created"); + + CFRelease(groupRef); + CFRelease(addressBookRef); +} + +- (void)testDeleteGroup +{ + + NSInteger groupId = 1; + + CFErrorRef errorRef = NULL; + + ABAddressBookRef addressBookRef = ABAddressBookCreate(); + STAssertTrue(addressBookRef != NULL, @"addressBookRef is NULL"); + + ABRecordRef savedGroupRef = ABAddressBookGetGroupWithRecordID(addressBookRef, groupId); + STAssertTrue(savedGroupRef != NULL, @"groupRef is not saved"); + + if (savedGroupRef != NULL) { + ABAddressBookRemoveRecord(addressBookRef, savedGroupRef, &errorRef); + ABAddressBookSave(addressBookRef, &errorRef); + + savedGroupRef = ABAddressBookGetGroupWithRecordID(addressBookRef, groupId); + STAssertTrue(savedGroupRef == NULL, @"groupRef is not deleted"); + + } + + + if (errorRef != NULL) { + CFRelease(errorRef); + } + + CFRelease(addressBookRef); +} + + +@end diff --git a/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/en.lproj/InfoPlist.strings b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Workspaces/Projects/SFAddressbookTutorial/SFAddressbookTutorialTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Workspaces/Saltfactory_iOS_Tutorial.xcworkspace/contents.xcworkspacedata b/Workspaces/Saltfactory_iOS_Tutorial.xcworkspace/contents.xcworkspacedata index 94b2795..b48d3c2 100644 --- a/Workspaces/Saltfactory_iOS_Tutorial.xcworkspace/contents.xcworkspacedata +++ b/Workspaces/Saltfactory_iOS_Tutorial.xcworkspace/contents.xcworkspacedata @@ -1,4 +1,7 @@ + +