diff --git a/CoreDataExamples/.DS_Store b/CoreDataExamples/.DS_Store new file mode 100644 index 0000000..c8bf786 Binary files /dev/null and b/CoreDataExamples/.DS_Store differ diff --git a/CoreDataExamples/CoreDataExamples.xcodeproj/project.pbxproj b/CoreDataExamples/CoreDataExamples.xcodeproj/project.pbxproj new file mode 100644 index 0000000..74f88dc --- /dev/null +++ b/CoreDataExamples/CoreDataExamples.xcodeproj/project.pbxproj @@ -0,0 +1,580 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + D44A05FA1BC1AEA800FE387B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D44A05F91BC1AEA800FE387B /* main.m */; }; + D44A05FD1BC1AEA800FE387B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D44A05FC1BC1AEA800FE387B /* AppDelegate.m */; }; + D44A06031BC1AEA800FE387B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D44A06011BC1AEA800FE387B /* Main.storyboard */; }; + D44A06061BC1AEA800FE387B /* CoreDataExamples.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = D44A06041BC1AEA800FE387B /* CoreDataExamples.xcdatamodeld */; }; + D44A06081BC1AEA800FE387B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D44A06071BC1AEA800FE387B /* Assets.xcassets */; }; + D44A060B1BC1AEA800FE387B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D44A06091BC1AEA800FE387B /* LaunchScreen.storyboard */; }; + D44A06161BC1AEA800FE387B /* CoreDataExamplesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D44A06151BC1AEA800FE387B /* CoreDataExamplesTests.m */; }; + D44A06211BC1AEA800FE387B /* CoreDataExamplesUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = D44A06201BC1AEA800FE387B /* CoreDataExamplesUITests.m */; }; + D46E57301BC1B32F003876A8 /* Task+CoreDataProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = D46E57291BC1B32F003876A8 /* Task+CoreDataProperties.m */; settings = {ASSET_TAGS = (); }; }; + D46E57311BC1B32F003876A8 /* Task.m in Sources */ = {isa = PBXBuildFile; fileRef = D46E572B1BC1B32F003876A8 /* Task.m */; settings = {ASSET_TAGS = (); }; }; + D46E57321BC1B32F003876A8 /* List+CoreDataProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = D46E572D1BC1B32F003876A8 /* List+CoreDataProperties.m */; settings = {ASSET_TAGS = (); }; }; + D46E57331BC1B32F003876A8 /* List.m in Sources */ = {isa = PBXBuildFile; fileRef = D46E572F1BC1B32F003876A8 /* List.m */; settings = {ASSET_TAGS = (); }; }; + D46E57361BC1B954003876A8 /* ListsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D46E57351BC1B954003876A8 /* ListsTableViewController.m */; settings = {ASSET_TAGS = (); }; }; + D46E57391BC1B969003876A8 /* ListsCreationTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D46E57381BC1B969003876A8 /* ListsCreationTableViewController.m */; settings = {ASSET_TAGS = (); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + D44A06121BC1AEA800FE387B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D44A05ED1BC1AEA800FE387B /* Project object */; + proxyType = 1; + remoteGlobalIDString = D44A05F41BC1AEA800FE387B; + remoteInfo = CoreDataExamples; + }; + D44A061D1BC1AEA800FE387B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D44A05ED1BC1AEA800FE387B /* Project object */; + proxyType = 1; + remoteGlobalIDString = D44A05F41BC1AEA800FE387B; + remoteInfo = CoreDataExamples; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + D44A05F51BC1AEA800FE387B /* CoreDataExamples.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CoreDataExamples.app; sourceTree = BUILT_PRODUCTS_DIR; }; + D44A05F91BC1AEA800FE387B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + D44A05FB1BC1AEA800FE387B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + D44A05FC1BC1AEA800FE387B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + D44A06021BC1AEA800FE387B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + D44A06051BC1AEA800FE387B /* CoreDataExamples.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = CoreDataExamples.xcdatamodel; sourceTree = ""; }; + D44A06071BC1AEA800FE387B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + D44A060A1BC1AEA800FE387B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + D44A060C1BC1AEA800FE387B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D44A06111BC1AEA800FE387B /* CoreDataExamplesTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CoreDataExamplesTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + D44A06151BC1AEA800FE387B /* CoreDataExamplesTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CoreDataExamplesTests.m; sourceTree = ""; }; + D44A06171BC1AEA800FE387B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D44A061C1BC1AEA800FE387B /* CoreDataExamplesUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CoreDataExamplesUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + D44A06201BC1AEA800FE387B /* CoreDataExamplesUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CoreDataExamplesUITests.m; sourceTree = ""; }; + D44A06221BC1AEA800FE387B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D46E57281BC1B32F003876A8 /* Task+CoreDataProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Task+CoreDataProperties.h"; sourceTree = ""; }; + D46E57291BC1B32F003876A8 /* Task+CoreDataProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "Task+CoreDataProperties.m"; sourceTree = ""; }; + D46E572A1BC1B32F003876A8 /* Task.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Task.h; sourceTree = ""; }; + D46E572B1BC1B32F003876A8 /* Task.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Task.m; sourceTree = ""; }; + D46E572C1BC1B32F003876A8 /* List+CoreDataProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "List+CoreDataProperties.h"; sourceTree = ""; }; + D46E572D1BC1B32F003876A8 /* List+CoreDataProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "List+CoreDataProperties.m"; sourceTree = ""; }; + D46E572E1BC1B32F003876A8 /* List.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = List.h; sourceTree = ""; }; + D46E572F1BC1B32F003876A8 /* List.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = List.m; sourceTree = ""; }; + D46E57341BC1B954003876A8 /* ListsTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListsTableViewController.h; sourceTree = ""; }; + D46E57351BC1B954003876A8 /* ListsTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ListsTableViewController.m; sourceTree = ""; }; + D46E57371BC1B969003876A8 /* ListsCreationTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListsCreationTableViewController.h; sourceTree = ""; }; + D46E57381BC1B969003876A8 /* ListsCreationTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ListsCreationTableViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + D44A05F21BC1AEA800FE387B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D44A060E1BC1AEA800FE387B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D44A06191BC1AEA800FE387B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + D44A05EC1BC1AEA800FE387B = { + isa = PBXGroup; + children = ( + D44A05F71BC1AEA800FE387B /* CoreDataExamples */, + D44A06141BC1AEA800FE387B /* CoreDataExamplesTests */, + D44A061F1BC1AEA800FE387B /* CoreDataExamplesUITests */, + D44A05F61BC1AEA800FE387B /* Products */, + ); + sourceTree = ""; + }; + D44A05F61BC1AEA800FE387B /* Products */ = { + isa = PBXGroup; + children = ( + D44A05F51BC1AEA800FE387B /* CoreDataExamples.app */, + D44A06111BC1AEA800FE387B /* CoreDataExamplesTests.xctest */, + D44A061C1BC1AEA800FE387B /* CoreDataExamplesUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + D44A05F71BC1AEA800FE387B /* CoreDataExamples */ = { + isa = PBXGroup; + children = ( + D46E57241BC1B2CB003876A8 /* Model */, + D44A05FB1BC1AEA800FE387B /* AppDelegate.h */, + D44A05FC1BC1AEA800FE387B /* AppDelegate.m */, + D46E57341BC1B954003876A8 /* ListsTableViewController.h */, + D46E57351BC1B954003876A8 /* ListsTableViewController.m */, + D46E57371BC1B969003876A8 /* ListsCreationTableViewController.h */, + D46E57381BC1B969003876A8 /* ListsCreationTableViewController.m */, + D44A06011BC1AEA800FE387B /* Main.storyboard */, + D44A06071BC1AEA800FE387B /* Assets.xcassets */, + D44A06091BC1AEA800FE387B /* LaunchScreen.storyboard */, + D44A060C1BC1AEA800FE387B /* Info.plist */, + D44A06041BC1AEA800FE387B /* CoreDataExamples.xcdatamodeld */, + D44A05F81BC1AEA800FE387B /* Supporting Files */, + ); + path = CoreDataExamples; + sourceTree = ""; + }; + D44A05F81BC1AEA800FE387B /* Supporting Files */ = { + isa = PBXGroup; + children = ( + D44A05F91BC1AEA800FE387B /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + D44A06141BC1AEA800FE387B /* CoreDataExamplesTests */ = { + isa = PBXGroup; + children = ( + D44A06151BC1AEA800FE387B /* CoreDataExamplesTests.m */, + D44A06171BC1AEA800FE387B /* Info.plist */, + ); + path = CoreDataExamplesTests; + sourceTree = ""; + }; + D44A061F1BC1AEA800FE387B /* CoreDataExamplesUITests */ = { + isa = PBXGroup; + children = ( + D44A06201BC1AEA800FE387B /* CoreDataExamplesUITests.m */, + D44A06221BC1AEA800FE387B /* Info.plist */, + ); + path = CoreDataExamplesUITests; + sourceTree = ""; + }; + D46E57241BC1B2CB003876A8 /* Model */ = { + isa = PBXGroup; + children = ( + D46E572C1BC1B32F003876A8 /* List+CoreDataProperties.h */, + D46E572D1BC1B32F003876A8 /* List+CoreDataProperties.m */, + D46E572E1BC1B32F003876A8 /* List.h */, + D46E572F1BC1B32F003876A8 /* List.m */, + D46E57281BC1B32F003876A8 /* Task+CoreDataProperties.h */, + D46E57291BC1B32F003876A8 /* Task+CoreDataProperties.m */, + D46E572A1BC1B32F003876A8 /* Task.h */, + D46E572B1BC1B32F003876A8 /* Task.m */, + ); + name = Model; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + D44A05F41BC1AEA800FE387B /* CoreDataExamples */ = { + isa = PBXNativeTarget; + buildConfigurationList = D44A06251BC1AEA800FE387B /* Build configuration list for PBXNativeTarget "CoreDataExamples" */; + buildPhases = ( + D44A05F11BC1AEA800FE387B /* Sources */, + D44A05F21BC1AEA800FE387B /* Frameworks */, + D44A05F31BC1AEA800FE387B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CoreDataExamples; + productName = CoreDataExamples; + productReference = D44A05F51BC1AEA800FE387B /* CoreDataExamples.app */; + productType = "com.apple.product-type.application"; + }; + D44A06101BC1AEA800FE387B /* CoreDataExamplesTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = D44A06281BC1AEA800FE387B /* Build configuration list for PBXNativeTarget "CoreDataExamplesTests" */; + buildPhases = ( + D44A060D1BC1AEA800FE387B /* Sources */, + D44A060E1BC1AEA800FE387B /* Frameworks */, + D44A060F1BC1AEA800FE387B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + D44A06131BC1AEA800FE387B /* PBXTargetDependency */, + ); + name = CoreDataExamplesTests; + productName = CoreDataExamplesTests; + productReference = D44A06111BC1AEA800FE387B /* CoreDataExamplesTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + D44A061B1BC1AEA800FE387B /* CoreDataExamplesUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = D44A062B1BC1AEA800FE387B /* Build configuration list for PBXNativeTarget "CoreDataExamplesUITests" */; + buildPhases = ( + D44A06181BC1AEA800FE387B /* Sources */, + D44A06191BC1AEA800FE387B /* Frameworks */, + D44A061A1BC1AEA800FE387B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + D44A061E1BC1AEA800FE387B /* PBXTargetDependency */, + ); + name = CoreDataExamplesUITests; + productName = CoreDataExamplesUITests; + productReference = D44A061C1BC1AEA800FE387B /* CoreDataExamplesUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D44A05ED1BC1AEA800FE387B /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0700; + ORGANIZATIONNAME = "Jason Wang"; + TargetAttributes = { + D44A05F41BC1AEA800FE387B = { + CreatedOnToolsVersion = 7.0.1; + DevelopmentTeam = 55V3ELH4AV; + }; + D44A06101BC1AEA800FE387B = { + CreatedOnToolsVersion = 7.0.1; + DevelopmentTeam = 55V3ELH4AV; + TestTargetID = D44A05F41BC1AEA800FE387B; + }; + D44A061B1BC1AEA800FE387B = { + CreatedOnToolsVersion = 7.0.1; + DevelopmentTeam = 55V3ELH4AV; + TestTargetID = D44A05F41BC1AEA800FE387B; + }; + }; + }; + buildConfigurationList = D44A05F01BC1AEA800FE387B /* Build configuration list for PBXProject "CoreDataExamples" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = D44A05EC1BC1AEA800FE387B; + productRefGroup = D44A05F61BC1AEA800FE387B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + D44A05F41BC1AEA800FE387B /* CoreDataExamples */, + D44A06101BC1AEA800FE387B /* CoreDataExamplesTests */, + D44A061B1BC1AEA800FE387B /* CoreDataExamplesUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + D44A05F31BC1AEA800FE387B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D44A060B1BC1AEA800FE387B /* LaunchScreen.storyboard in Resources */, + D44A06081BC1AEA800FE387B /* Assets.xcassets in Resources */, + D44A06031BC1AEA800FE387B /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D44A060F1BC1AEA800FE387B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D44A061A1BC1AEA800FE387B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + D44A05F11BC1AEA800FE387B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D46E57301BC1B32F003876A8 /* Task+CoreDataProperties.m in Sources */, + D44A05FD1BC1AEA800FE387B /* AppDelegate.m in Sources */, + D44A05FA1BC1AEA800FE387B /* main.m in Sources */, + D46E57361BC1B954003876A8 /* ListsTableViewController.m in Sources */, + D46E57311BC1B32F003876A8 /* Task.m in Sources */, + D46E57331BC1B32F003876A8 /* List.m in Sources */, + D44A06061BC1AEA800FE387B /* CoreDataExamples.xcdatamodeld in Sources */, + D46E57391BC1B969003876A8 /* ListsCreationTableViewController.m in Sources */, + D46E57321BC1B32F003876A8 /* List+CoreDataProperties.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D44A060D1BC1AEA800FE387B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D44A06161BC1AEA800FE387B /* CoreDataExamplesTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D44A06181BC1AEA800FE387B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D44A06211BC1AEA800FE387B /* CoreDataExamplesUITests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + D44A06131BC1AEA800FE387B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = D44A05F41BC1AEA800FE387B /* CoreDataExamples */; + targetProxy = D44A06121BC1AEA800FE387B /* PBXContainerItemProxy */; + }; + D44A061E1BC1AEA800FE387B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = D44A05F41BC1AEA800FE387B /* CoreDataExamples */; + targetProxy = D44A061D1BC1AEA800FE387B /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + D44A06011BC1AEA800FE387B /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D44A06021BC1AEA800FE387B /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + D44A06091BC1AEA800FE387B /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D44A060A1BC1AEA800FE387B /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + D44A06231BC1AEA800FE387B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + D44A06241BC1AEA800FE387B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + D44A06261BC1AEA800FE387B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = CoreDataExamples/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jasonwang.CoreDataExamples; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + D44A06271BC1AEA800FE387B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = CoreDataExamples/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jasonwang.CoreDataExamples; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + D44A06291BC1AEA800FE387B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = CoreDataExamplesTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jasonwang.CoreDataExamplesTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CoreDataExamples.app/CoreDataExamples"; + }; + name = Debug; + }; + D44A062A1BC1AEA800FE387B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = CoreDataExamplesTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jasonwang.CoreDataExamplesTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CoreDataExamples.app/CoreDataExamples"; + }; + name = Release; + }; + D44A062C1BC1AEA800FE387B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = CoreDataExamplesUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jasonwang.CoreDataExamplesUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = CoreDataExamples; + USES_XCTRUNNER = YES; + }; + name = Debug; + }; + D44A062D1BC1AEA800FE387B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = CoreDataExamplesUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.jasonwang.CoreDataExamplesUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_TARGET_NAME = CoreDataExamples; + USES_XCTRUNNER = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + D44A05F01BC1AEA800FE387B /* Build configuration list for PBXProject "CoreDataExamples" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D44A06231BC1AEA800FE387B /* Debug */, + D44A06241BC1AEA800FE387B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D44A06251BC1AEA800FE387B /* Build configuration list for PBXNativeTarget "CoreDataExamples" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D44A06261BC1AEA800FE387B /* Debug */, + D44A06271BC1AEA800FE387B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D44A06281BC1AEA800FE387B /* Build configuration list for PBXNativeTarget "CoreDataExamplesTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D44A06291BC1AEA800FE387B /* Debug */, + D44A062A1BC1AEA800FE387B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D44A062B1BC1AEA800FE387B /* Build configuration list for PBXNativeTarget "CoreDataExamplesUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D44A062C1BC1AEA800FE387B /* Debug */, + D44A062D1BC1AEA800FE387B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + D44A06041BC1AEA800FE387B /* CoreDataExamples.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + D44A06051BC1AEA800FE387B /* CoreDataExamples.xcdatamodel */, + ); + currentVersion = D44A06051BC1AEA800FE387B /* CoreDataExamples.xcdatamodel */; + path = CoreDataExamples.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = D44A05ED1BC1AEA800FE387B /* Project object */; +} diff --git a/SavingForever/SavingForever.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/CoreDataExamples/CoreDataExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 67% rename from SavingForever/SavingForever.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to CoreDataExamples/CoreDataExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 43eb427..eccbf33 100644 --- a/SavingForever/SavingForever.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/CoreDataExamples/CoreDataExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:CoreDataExamples.xcodeproj"> diff --git a/SavingForever/SavingForever/AppDelegate.h b/CoreDataExamples/CoreDataExamples/AppDelegate.h similarity index 81% rename from SavingForever/SavingForever/AppDelegate.h rename to CoreDataExamples/CoreDataExamples/AppDelegate.h index 6657831..aa3a7dd 100644 --- a/SavingForever/SavingForever/AppDelegate.h +++ b/CoreDataExamples/CoreDataExamples/AppDelegate.h @@ -1,9 +1,9 @@ // // AppDelegate.h -// SavingForever +// CoreDataExamples // -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. // #import diff --git a/SavingForever/SavingForever/AppDelegate.m b/CoreDataExamples/CoreDataExamples/AppDelegate.m similarity index 93% rename from SavingForever/SavingForever/AppDelegate.m rename to CoreDataExamples/CoreDataExamples/AppDelegate.m index 29b2305..d9c67d1 100644 --- a/SavingForever/SavingForever/AppDelegate.m +++ b/CoreDataExamples/CoreDataExamples/AppDelegate.m @@ -1,9 +1,9 @@ // // AppDelegate.m -// SavingForever +// CoreDataExamples // -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. // #import "AppDelegate.h" @@ -51,7 +51,7 @@ - (void)applicationWillTerminate:(UIApplication *)application { @synthesize persistentStoreCoordinator = _persistentStoreCoordinator; - (NSURL *)applicationDocumentsDirectory { - // The directory the application uses to store the Core Data store file. This code uses a directory named "com.mikekavouras.SavingForever" in the application's documents directory. + // The directory the application uses to store the Core Data store file. This code uses a directory named "com.jasonwang.CoreDataExamples" in the application's documents directory. return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; } @@ -60,7 +60,7 @@ - (NSManagedObjectModel *)managedObjectModel { if (_managedObjectModel != nil) { return _managedObjectModel; } - NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"SavingForever" withExtension:@"momd"]; + NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"CoreDataExamples" withExtension:@"momd"]; _managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; return _managedObjectModel; } @@ -74,7 +74,7 @@ - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { // Create the coordinator and store _persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]]; - NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"SavingForever.sqlite"]; + NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"CoreDataExamples.sqlite"]; NSError *error = nil; NSString *failureReason = @"There was an error creating or loading the application's saved data."; if (![_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:nil error:&error]) { diff --git a/SavingForever/SavingForever/Assets.xcassets/AppIcon.appiconset/Contents.json b/CoreDataExamples/CoreDataExamples/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SavingForever/SavingForever/Assets.xcassets/AppIcon.appiconset/Contents.json rename to CoreDataExamples/CoreDataExamples/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/SavingForever/SavingForever/Base.lproj/LaunchScreen.storyboard b/CoreDataExamples/CoreDataExamples/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from SavingForever/SavingForever/Base.lproj/LaunchScreen.storyboard rename to CoreDataExamples/CoreDataExamples/Base.lproj/LaunchScreen.storyboard diff --git a/CoreDataExamples/CoreDataExamples/Base.lproj/Main.storyboard b/CoreDataExamples/CoreDataExamples/Base.lproj/Main.storyboard new file mode 100644 index 0000000..86f860a --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/Base.lproj/Main.storyboard @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SavingForever/SavingForever/SavingForever.xcdatamodeld/.xccurrentversion b/CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/.xccurrentversion similarity index 82% rename from SavingForever/SavingForever/SavingForever.xcdatamodeld/.xccurrentversion rename to CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/.xccurrentversion index 352ed15..91ec950 100644 --- a/SavingForever/SavingForever/SavingForever.xcdatamodeld/.xccurrentversion +++ b/CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/.xccurrentversion @@ -3,6 +3,6 @@ _XCCurrentVersionName - SavingForever.xcdatamodel + CoreDataExamples.xcdatamodel diff --git a/CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/CoreDataExamples.xcdatamodel/contents b/CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/CoreDataExamples.xcdatamodel/contents new file mode 100644 index 0000000..50e44e7 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/CoreDataExamples.xcdatamodel/contents @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SavingForever/SavingForever/Info.plist b/CoreDataExamples/CoreDataExamples/Info.plist similarity index 100% rename from SavingForever/SavingForever/Info.plist rename to CoreDataExamples/CoreDataExamples/Info.plist diff --git a/CoreDataExamples/CoreDataExamples/List+CoreDataProperties.h b/CoreDataExamples/CoreDataExamples/List+CoreDataProperties.h new file mode 100644 index 0000000..3bdfb91 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/List+CoreDataProperties.h @@ -0,0 +1,25 @@ +// +// List+CoreDataProperties.h +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// +// Choose "Create NSManagedObject Subclass…" from the Core Data editor menu +// to delete and recreate this implementation file for your updated model. +// + +#import "List.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface List (CoreDataProperties) + +@property (nullable, nonatomic, retain) NSString *title; +@property (nullable, nonatomic, retain) NSDate *createdAt; +@property (nullable, nonatomic, retain) id color; +@property (nullable, nonatomic, retain) NSArray *task; + +@end + +NS_ASSUME_NONNULL_END diff --git a/CoreDataExamples/CoreDataExamples/List+CoreDataProperties.m b/CoreDataExamples/CoreDataExamples/List+CoreDataProperties.m new file mode 100644 index 0000000..5ff83f0 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/List+CoreDataProperties.m @@ -0,0 +1,21 @@ +// +// List+CoreDataProperties.m +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// +// Choose "Create NSManagedObject Subclass…" from the Core Data editor menu +// to delete and recreate this implementation file for your updated model. +// + +#import "List+CoreDataProperties.h" + +@implementation List (CoreDataProperties) + +@dynamic title; +@dynamic createdAt; +@dynamic color; +@dynamic task; + +@end diff --git a/CoreDataExamples/CoreDataExamples/List.h b/CoreDataExamples/CoreDataExamples/List.h new file mode 100644 index 0000000..f76b956 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/List.h @@ -0,0 +1,24 @@ +// +// List.h +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import +#import + +@class Task; + +NS_ASSUME_NONNULL_BEGIN + +@interface List : NSManagedObject + +// Insert code here to declare functionality of your managed object subclass + +@end + +NS_ASSUME_NONNULL_END + +#import "List+CoreDataProperties.h" diff --git a/CoreDataExamples/CoreDataExamples/List.m b/CoreDataExamples/CoreDataExamples/List.m new file mode 100644 index 0000000..2ff57a8 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/List.m @@ -0,0 +1,16 @@ +// +// List.m +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import "List.h" +#import "Task.h" + +@implementation List + +// Insert code here to add functionality to your managed object subclass + +@end diff --git a/CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.h b/CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.h new file mode 100644 index 0000000..68efb21 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.h @@ -0,0 +1,13 @@ +// +// ListsCreationTableViewController.h +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import + +@interface ListsCreationTableViewController : UITableViewController + +@end diff --git a/CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.m b/CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.m new file mode 100644 index 0000000..e8e96a9 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.m @@ -0,0 +1,69 @@ +// +// ListsCreationTableViewController.m +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import +#import "ListsCreationTableViewController.h" +#import "List.h" +#import "AppDelegate.h" + + +@interface ListsCreationTableViewController () + +@property (strong, nonatomic) IBOutlet UITextField *titleTextField; + +@property (nonatomic) List *list; + +@end + +@implementation ListsCreationTableViewController + +-(void)viewDidLoad { + [super viewDidLoad]; + + [self setupNavigationBar]; + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + + self.list = [NSEntityDescription insertNewObjectForEntityForName:@"List" inManagedObjectContext:delegate.managedObjectContext]; + NSLog(@"%@", self.list); +} + +-(void)setupNavigationBar { + + //set the title + self.navigationItem.title = @"Create New List"; + + //set the left bar to cancel + self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel)]; + + //set the right button to save + self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(save)]; + +} + +-(void)cancel { + [self dismissViewControllerAnimated:YES completion:nil]; +} + +-(void)save { + self.list.title = self.titleTextField.text; + self.list.createdAt = [[NSDate alloc] init]; + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + [delegate.managedObjectContext save:nil]; + + +} + +- (IBAction)colorButtonTapped:(UIButton *)sender { + + self.list.color = sender.backgroundColor; + +} + + +@end diff --git a/CoreDataExamples/CoreDataExamples/ListsTableViewController.h b/CoreDataExamples/CoreDataExamples/ListsTableViewController.h new file mode 100644 index 0000000..63b238f --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/ListsTableViewController.h @@ -0,0 +1,13 @@ +// +// ListsTableViewController.h +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import + +@interface ListsTableViewController : UITableViewController + +@end diff --git a/CoreDataExamples/CoreDataExamples/ListsTableViewController.m b/CoreDataExamples/CoreDataExamples/ListsTableViewController.m new file mode 100644 index 0000000..aed687a --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/ListsTableViewController.m @@ -0,0 +1,84 @@ +// +// ListsTableViewController.m +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import "ListsTableViewController.h" +#import "AppDelegate.h" +#import "List.h" +#import + +@interface ListsTableViewController () + +@property (nonatomic) NSFetchedResultsController *fetchedResultsController; + +@end + +@implementation ListsTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + + // 1) create an instance of NSFetchRequest with an entity name + NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] initWithEntityName:@"List"]; + + // 2) create a sort descriptor + NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"createdAt" ascending:NO]; + + // 3) set the sortDescriptors on the fetchRequest + fetchRequest.sortDescriptors = @[sort]; + + // 4) create a fetchedResultsController with a fetchRequest and a managedObject + self.fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:delegate.managedObjectContext sectionNameKeyPath:nil cacheName:nil]; + + self.fetchedResultsController.delegate = self; + + [self.fetchedResultsController performFetch:nil]; + + [self.tableView reloadData]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + + return self.fetchedResultsController.fetchedObjects.count; +} + + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ListCellIdentifier" forIndexPath:indexPath]; + + List *list = self.fetchedResultsController.fetchedObjects[indexPath.row]; + + cell.backgroundColor = (UIColor *)list.color; + + cell.textLabel.text = list.title; + + cell.detailTextLabel.text = [list.createdAt description]; + + return cell; +} + +-(void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newIndexPath { + [self.tableView reloadData]; +} + + + +@end diff --git a/CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.h b/CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.h new file mode 100644 index 0000000..3025c36 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.h @@ -0,0 +1,28 @@ +// +// Task+CoreDataProperties.h +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// +// Choose "Create NSManagedObject Subclass…" from the Core Data editor menu +// to delete and recreate this implementation file for your updated model. +// + +#import "Task.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface Task (CoreDataProperties) + +@property (nullable, nonatomic, retain) NSString *taskDescription; +@property (nullable, nonatomic, retain) NSDate *createdAt; +@property (nullable, nonatomic, retain) NSDate *dueAt; +@property (nullable, nonatomic, retain) NSDate *updatedAt; +@property (nullable, nonatomic, retain) NSNumber *priority; +@property (nullable, nonatomic, retain) NSDate *completedAt; +@property (nullable, nonatomic, retain) NSManagedObject *list; + +@end + +NS_ASSUME_NONNULL_END diff --git a/CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.m b/CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.m new file mode 100644 index 0000000..0109314 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.m @@ -0,0 +1,24 @@ +// +// Task+CoreDataProperties.m +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// +// Choose "Create NSManagedObject Subclass…" from the Core Data editor menu +// to delete and recreate this implementation file for your updated model. +// + +#import "Task+CoreDataProperties.h" + +@implementation Task (CoreDataProperties) + +@dynamic taskDescription; +@dynamic createdAt; +@dynamic dueAt; +@dynamic updatedAt; +@dynamic priority; +@dynamic completedAt; +@dynamic list; + +@end diff --git a/CoreDataExamples/CoreDataExamples/Task.h b/CoreDataExamples/CoreDataExamples/Task.h new file mode 100644 index 0000000..9083ac4 --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/Task.h @@ -0,0 +1,22 @@ +// +// Task.h +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface Task : NSManagedObject + +// Insert code here to declare functionality of your managed object subclass + +@end + +NS_ASSUME_NONNULL_END + +#import "Task+CoreDataProperties.h" diff --git a/CoreDataExamples/CoreDataExamples/Task.m b/CoreDataExamples/CoreDataExamples/Task.m new file mode 100644 index 0000000..223b57c --- /dev/null +++ b/CoreDataExamples/CoreDataExamples/Task.m @@ -0,0 +1,15 @@ +// +// Task.m +// CoreDataExamples +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import "Task.h" + +@implementation Task + +// Insert code here to add functionality to your managed object subclass + +@end diff --git a/SavingForever/SavingForever/main.m b/CoreDataExamples/CoreDataExamples/main.m similarity index 64% rename from SavingForever/SavingForever/main.m rename to CoreDataExamples/CoreDataExamples/main.m index 0d1314d..d536363 100644 --- a/SavingForever/SavingForever/main.m +++ b/CoreDataExamples/CoreDataExamples/main.m @@ -1,9 +1,9 @@ // // main.m -// SavingForever +// CoreDataExamples // -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. // #import diff --git a/CoreDataExamples/CoreDataExamplesTests/CoreDataExamplesTests.m b/CoreDataExamples/CoreDataExamplesTests/CoreDataExamplesTests.m new file mode 100644 index 0000000..c981e65 --- /dev/null +++ b/CoreDataExamples/CoreDataExamplesTests/CoreDataExamplesTests.m @@ -0,0 +1,39 @@ +// +// CoreDataExamplesTests.m +// CoreDataExamplesTests +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import + +@interface CoreDataExamplesTests : XCTestCase + +@end + +@implementation CoreDataExamplesTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end diff --git a/CoreDataExamples/CoreDataExamplesTests/Info.plist b/CoreDataExamples/CoreDataExamplesTests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/CoreDataExamples/CoreDataExamplesTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/CoreDataExamples/CoreDataExamplesUITests/CoreDataExamplesUITests.m b/CoreDataExamples/CoreDataExamplesUITests/CoreDataExamplesUITests.m new file mode 100644 index 0000000..0fb4022 --- /dev/null +++ b/CoreDataExamples/CoreDataExamplesUITests/CoreDataExamplesUITests.m @@ -0,0 +1,40 @@ +// +// CoreDataExamplesUITests.m +// CoreDataExamplesUITests +// +// Created by Jason Wang on 10/4/15. +// Copyright © 2015 Jason Wang. All rights reserved. +// + +#import + +@interface CoreDataExamplesUITests : XCTestCase + +@end + +@implementation CoreDataExamplesUITests + +- (void)setUp { + [super setUp]; + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + self.continueAfterFailure = NO; + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + [[[XCUIApplication alloc] init] launch]; + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +@end diff --git a/CoreDataExamples/CoreDataExamplesUITests/Info.plist b/CoreDataExamples/CoreDataExamplesUITests/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/CoreDataExamples/CoreDataExamplesUITests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/SavingForever/SavingForever.xcodeproj/project.pbxproj b/SavingForever/SavingForever.xcodeproj/project.pbxproj deleted file mode 100644 index cbf89e2..0000000 --- a/SavingForever/SavingForever.xcodeproj/project.pbxproj +++ /dev/null @@ -1,322 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 8D2949671BC1D06E00FDC81F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D2949661BC1D06E00FDC81F /* main.m */; }; - 8D29496A1BC1D06E00FDC81F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D2949691BC1D06E00FDC81F /* AppDelegate.m */; }; - 8D29496D1BC1D06E00FDC81F /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D29496C1BC1D06E00FDC81F /* ViewController.m */; }; - 8D2949701BC1D06E00FDC81F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8D29496E1BC1D06E00FDC81F /* Main.storyboard */; }; - 8D2949731BC1D06E00FDC81F /* SavingForever.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 8D2949711BC1D06E00FDC81F /* SavingForever.xcdatamodeld */; }; - 8D2949751BC1D06E00FDC81F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8D2949741BC1D06E00FDC81F /* Assets.xcassets */; }; - 8D2949781BC1D06E00FDC81F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8D2949761BC1D06E00FDC81F /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 8D2949621BC1D06E00FDC81F /* SavingForever.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SavingForever.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 8D2949661BC1D06E00FDC81F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 8D2949681BC1D06E00FDC81F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 8D2949691BC1D06E00FDC81F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 8D29496B1BC1D06E00FDC81F /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 8D29496C1BC1D06E00FDC81F /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 8D29496F1BC1D06E00FDC81F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 8D2949721BC1D06E00FDC81F /* SavingForever.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = SavingForever.xcdatamodel; sourceTree = ""; }; - 8D2949741BC1D06E00FDC81F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 8D2949771BC1D06E00FDC81F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 8D2949791BC1D06E00FDC81F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 8D29495F1BC1D06E00FDC81F /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 8D2949591BC1D06D00FDC81F = { - isa = PBXGroup; - children = ( - 8D2949641BC1D06E00FDC81F /* SavingForever */, - 8D2949631BC1D06E00FDC81F /* Products */, - ); - sourceTree = ""; - }; - 8D2949631BC1D06E00FDC81F /* Products */ = { - isa = PBXGroup; - children = ( - 8D2949621BC1D06E00FDC81F /* SavingForever.app */, - ); - name = Products; - sourceTree = ""; - }; - 8D2949641BC1D06E00FDC81F /* SavingForever */ = { - isa = PBXGroup; - children = ( - 8D2949681BC1D06E00FDC81F /* AppDelegate.h */, - 8D2949691BC1D06E00FDC81F /* AppDelegate.m */, - 8D29496B1BC1D06E00FDC81F /* ViewController.h */, - 8D29496C1BC1D06E00FDC81F /* ViewController.m */, - 8D29496E1BC1D06E00FDC81F /* Main.storyboard */, - 8D2949741BC1D06E00FDC81F /* Assets.xcassets */, - 8D2949761BC1D06E00FDC81F /* LaunchScreen.storyboard */, - 8D2949791BC1D06E00FDC81F /* Info.plist */, - 8D2949711BC1D06E00FDC81F /* SavingForever.xcdatamodeld */, - 8D2949651BC1D06E00FDC81F /* Supporting Files */, - ); - path = SavingForever; - sourceTree = ""; - }; - 8D2949651BC1D06E00FDC81F /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 8D2949661BC1D06E00FDC81F /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 8D2949611BC1D06E00FDC81F /* SavingForever */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8D29497C1BC1D06E00FDC81F /* Build configuration list for PBXNativeTarget "SavingForever" */; - buildPhases = ( - 8D29495E1BC1D06E00FDC81F /* Sources */, - 8D29495F1BC1D06E00FDC81F /* Frameworks */, - 8D2949601BC1D06E00FDC81F /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SavingForever; - productName = SavingForever; - productReference = 8D2949621BC1D06E00FDC81F /* SavingForever.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 8D29495A1BC1D06D00FDC81F /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0700; - ORGANIZATIONNAME = "Michael Kavouras"; - TargetAttributes = { - 8D2949611BC1D06E00FDC81F = { - CreatedOnToolsVersion = 7.0.1; - }; - }; - }; - buildConfigurationList = 8D29495D1BC1D06D00FDC81F /* Build configuration list for PBXProject "SavingForever" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 8D2949591BC1D06D00FDC81F; - productRefGroup = 8D2949631BC1D06E00FDC81F /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 8D2949611BC1D06E00FDC81F /* SavingForever */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 8D2949601BC1D06E00FDC81F /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D2949781BC1D06E00FDC81F /* LaunchScreen.storyboard in Resources */, - 8D2949751BC1D06E00FDC81F /* Assets.xcassets in Resources */, - 8D2949701BC1D06E00FDC81F /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 8D29495E1BC1D06E00FDC81F /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8D29496D1BC1D06E00FDC81F /* ViewController.m in Sources */, - 8D29496A1BC1D06E00FDC81F /* AppDelegate.m in Sources */, - 8D2949671BC1D06E00FDC81F /* main.m in Sources */, - 8D2949731BC1D06E00FDC81F /* SavingForever.xcdatamodeld in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 8D29496E1BC1D06E00FDC81F /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 8D29496F1BC1D06E00FDC81F /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 8D2949761BC1D06E00FDC81F /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 8D2949771BC1D06E00FDC81F /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 8D29497A1BC1D06E00FDC81F /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 8D29497B1BC1D06E00FDC81F /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 8D29497D1BC1D06E00FDC81F /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = SavingForever/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mikekavouras.SavingForever; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 8D29497E1BC1D06E00FDC81F /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = SavingForever/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mikekavouras.SavingForever; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 8D29495D1BC1D06D00FDC81F /* Build configuration list for PBXProject "SavingForever" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8D29497A1BC1D06E00FDC81F /* Debug */, - 8D29497B1BC1D06E00FDC81F /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8D29497C1BC1D06E00FDC81F /* Build configuration list for PBXNativeTarget "SavingForever" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8D29497D1BC1D06E00FDC81F /* Debug */, - 8D29497E1BC1D06E00FDC81F /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - -/* Begin XCVersionGroup section */ - 8D2949711BC1D06E00FDC81F /* SavingForever.xcdatamodeld */ = { - isa = XCVersionGroup; - children = ( - 8D2949721BC1D06E00FDC81F /* SavingForever.xcdatamodel */, - ); - currentVersion = 8D2949721BC1D06E00FDC81F /* SavingForever.xcdatamodel */; - path = SavingForever.xcdatamodeld; - sourceTree = ""; - versionGroupType = wrapper.xcdatamodel; - }; -/* End XCVersionGroup section */ - }; - rootObject = 8D29495A1BC1D06D00FDC81F /* Project object */; -} diff --git a/SavingForever/SavingForever/Base.lproj/Main.storyboard b/SavingForever/SavingForever/Base.lproj/Main.storyboard deleted file mode 100644 index f56d2f3..0000000 --- a/SavingForever/SavingForever/Base.lproj/Main.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SavingForever/SavingForever/SavingForever.xcdatamodeld/SavingForever.xcdatamodel/contents b/SavingForever/SavingForever/SavingForever.xcdatamodeld/SavingForever.xcdatamodel/contents deleted file mode 100644 index 193f33c..0000000 --- a/SavingForever/SavingForever/SavingForever.xcdatamodeld/SavingForever.xcdatamodel/contents +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/SavingForever/SavingForever/ViewController.h b/SavingForever/SavingForever/ViewController.h deleted file mode 100644 index b193f94..0000000 --- a/SavingForever/SavingForever/ViewController.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// SavingForever -// -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git a/SavingForever/SavingForever/ViewController.m b/SavingForever/SavingForever/ViewController.m deleted file mode 100644 index 5f1f663..0000000 --- a/SavingForever/SavingForever/ViewController.m +++ /dev/null @@ -1,27 +0,0 @@ -// -// ViewController.m -// SavingForever -// -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. -// - -#import "ViewController.h" - -@interface ViewController () - -@end - -@implementation ViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. -} - -- (void)didReceiveMemoryWarning { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -@end