diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/MarsWater/.DS_Store b/MarsWater/.DS_Store new file mode 100644 index 0000000..a191a48 Binary files /dev/null and b/MarsWater/.DS_Store differ diff --git a/MarsWater/MarsWater.xcodeproj/project.pbxproj b/MarsWater/MarsWater.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a5f6395 --- /dev/null +++ b/MarsWater/MarsWater.xcodeproj/project.pbxproj @@ -0,0 +1,374 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 6B765BC51BC337D1002DC96B /* TaskTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B765BC41BC337D1002DC96B /* TaskTableViewController.m */; settings = {ASSET_TAGS = (); }; }; + 6B765BC81BC337F2002DC96B /* TaskCreationTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B765BC71BC337F2002DC96B /* TaskCreationTableViewController.m */; settings = {ASSET_TAGS = (); }; }; + 6B80EDD91BC1AE4300283EB5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDD81BC1AE4300283EB5 /* main.m */; }; + 6B80EDDC1BC1AE4300283EB5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDDB1BC1AE4300283EB5 /* AppDelegate.m */; }; + 6B80EDE21BC1AE4300283EB5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6B80EDE01BC1AE4300283EB5 /* Main.storyboard */; }; + 6B80EDE51BC1AE4300283EB5 /* MarsWater.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDE31BC1AE4300283EB5 /* MarsWater.xcdatamodeld */; }; + 6B80EDE71BC1AE4300283EB5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6B80EDE61BC1AE4300283EB5 /* Assets.xcassets */; }; + 6B80EDEA1BC1AE4300283EB5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6B80EDE81BC1AE4300283EB5 /* LaunchScreen.storyboard */; }; + 6B80EDFD1BC1B32700283EB5 /* Task+CoreDataProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDF61BC1B32700283EB5 /* Task+CoreDataProperties.m */; settings = {ASSET_TAGS = (); }; }; + 6B80EDFE1BC1B32700283EB5 /* Task.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDF81BC1B32700283EB5 /* Task.m */; settings = {ASSET_TAGS = (); }; }; + 6B80EDFF1BC1B32700283EB5 /* List+CoreDataProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDFA1BC1B32700283EB5 /* List+CoreDataProperties.m */; settings = {ASSET_TAGS = (); }; }; + 6B80EE001BC1B32700283EB5 /* List.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EDFC1BC1B32700283EB5 /* List.m */; settings = {ASSET_TAGS = (); }; }; + 6B80EE031BC1B92300283EB5 /* ListTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EE021BC1B92300283EB5 /* ListTableViewController.m */; settings = {ASSET_TAGS = (); }; }; + 6B80EE061BC1B93700283EB5 /* ListCreationTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B80EE051BC1B93700283EB5 /* ListCreationTableViewController.m */; settings = {ASSET_TAGS = (); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 6B765BC31BC337D1002DC96B /* TaskTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TaskTableViewController.h; sourceTree = ""; }; + 6B765BC41BC337D1002DC96B /* TaskTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TaskTableViewController.m; sourceTree = ""; }; + 6B765BC61BC337F2002DC96B /* TaskCreationTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TaskCreationTableViewController.h; sourceTree = ""; }; + 6B765BC71BC337F2002DC96B /* TaskCreationTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TaskCreationTableViewController.m; sourceTree = ""; }; + 6B80EDD41BC1AE4300283EB5 /* MarsWater.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MarsWater.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 6B80EDD81BC1AE4300283EB5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 6B80EDDA1BC1AE4300283EB5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 6B80EDDB1BC1AE4300283EB5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 6B80EDE11BC1AE4300283EB5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 6B80EDE41BC1AE4300283EB5 /* MarsWater.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = MarsWater.xcdatamodel; sourceTree = ""; }; + 6B80EDE61BC1AE4300283EB5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 6B80EDE91BC1AE4300283EB5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 6B80EDEB1BC1AE4300283EB5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6B80EDF51BC1B32700283EB5 /* Task+CoreDataProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Task+CoreDataProperties.h"; sourceTree = ""; }; + 6B80EDF61BC1B32700283EB5 /* Task+CoreDataProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "Task+CoreDataProperties.m"; sourceTree = ""; }; + 6B80EDF71BC1B32700283EB5 /* Task.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Task.h; sourceTree = ""; }; + 6B80EDF81BC1B32700283EB5 /* Task.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Task.m; sourceTree = ""; }; + 6B80EDF91BC1B32700283EB5 /* List+CoreDataProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "List+CoreDataProperties.h"; sourceTree = ""; }; + 6B80EDFA1BC1B32700283EB5 /* List+CoreDataProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "List+CoreDataProperties.m"; sourceTree = ""; }; + 6B80EDFB1BC1B32700283EB5 /* List.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = List.h; sourceTree = ""; }; + 6B80EDFC1BC1B32700283EB5 /* List.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = List.m; sourceTree = ""; }; + 6B80EE011BC1B92300283EB5 /* ListTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListTableViewController.h; sourceTree = ""; }; + 6B80EE021BC1B92300283EB5 /* ListTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ListTableViewController.m; sourceTree = ""; }; + 6B80EE041BC1B93700283EB5 /* ListCreationTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ListCreationTableViewController.h; sourceTree = ""; }; + 6B80EE051BC1B93700283EB5 /* ListCreationTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ListCreationTableViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6B80EDD11BC1AE4300283EB5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6B80EDCB1BC1AE4300283EB5 = { + isa = PBXGroup; + children = ( + 6B80EDD61BC1AE4300283EB5 /* MarsWater */, + 6B80EDD51BC1AE4300283EB5 /* Products */, + ); + sourceTree = ""; + }; + 6B80EDD51BC1AE4300283EB5 /* Products */ = { + isa = PBXGroup; + children = ( + 6B80EDD41BC1AE4300283EB5 /* MarsWater.app */, + ); + name = Products; + sourceTree = ""; + }; + 6B80EDD61BC1AE4300283EB5 /* MarsWater */ = { + isa = PBXGroup; + children = ( + 6B80EDF41BC1B2B600283EB5 /* Model */, + 6B80EDDA1BC1AE4300283EB5 /* AppDelegate.h */, + 6B80EDDB1BC1AE4300283EB5 /* AppDelegate.m */, + 6B765BC31BC337D1002DC96B /* TaskTableViewController.h */, + 6B765BC41BC337D1002DC96B /* TaskTableViewController.m */, + 6B765BC61BC337F2002DC96B /* TaskCreationTableViewController.h */, + 6B765BC71BC337F2002DC96B /* TaskCreationTableViewController.m */, + 6B80EE011BC1B92300283EB5 /* ListTableViewController.h */, + 6B80EE021BC1B92300283EB5 /* ListTableViewController.m */, + 6B80EE041BC1B93700283EB5 /* ListCreationTableViewController.h */, + 6B80EE051BC1B93700283EB5 /* ListCreationTableViewController.m */, + 6B80EDE01BC1AE4300283EB5 /* Main.storyboard */, + 6B80EDE61BC1AE4300283EB5 /* Assets.xcassets */, + 6B80EDE81BC1AE4300283EB5 /* LaunchScreen.storyboard */, + 6B80EDEB1BC1AE4300283EB5 /* Info.plist */, + 6B80EDE31BC1AE4300283EB5 /* MarsWater.xcdatamodeld */, + 6B80EDD71BC1AE4300283EB5 /* Supporting Files */, + ); + path = MarsWater; + sourceTree = ""; + }; + 6B80EDD71BC1AE4300283EB5 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 6B80EDD81BC1AE4300283EB5 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 6B80EDF41BC1B2B600283EB5 /* Model */ = { + isa = PBXGroup; + children = ( + 6B80EDF51BC1B32700283EB5 /* Task+CoreDataProperties.h */, + 6B80EDF61BC1B32700283EB5 /* Task+CoreDataProperties.m */, + 6B80EDF71BC1B32700283EB5 /* Task.h */, + 6B80EDF81BC1B32700283EB5 /* Task.m */, + 6B80EDF91BC1B32700283EB5 /* List+CoreDataProperties.h */, + 6B80EDFA1BC1B32700283EB5 /* List+CoreDataProperties.m */, + 6B80EDFB1BC1B32700283EB5 /* List.h */, + 6B80EDFC1BC1B32700283EB5 /* List.m */, + ); + name = Model; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 6B80EDD31BC1AE4300283EB5 /* MarsWater */ = { + isa = PBXNativeTarget; + buildConfigurationList = 6B80EDEE1BC1AE4300283EB5 /* Build configuration list for PBXNativeTarget "MarsWater" */; + buildPhases = ( + 6B80EDD01BC1AE4300283EB5 /* Sources */, + 6B80EDD11BC1AE4300283EB5 /* Frameworks */, + 6B80EDD21BC1AE4300283EB5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MarsWater; + productName = MarsWater; + productReference = 6B80EDD41BC1AE4300283EB5 /* MarsWater.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 6B80EDCC1BC1AE4300283EB5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0700; + ORGANIZATIONNAME = "Justine Gartner"; + TargetAttributes = { + 6B80EDD31BC1AE4300283EB5 = { + CreatedOnToolsVersion = 7.0; + DevelopmentTeam = BA3X38Y2VZ; + }; + }; + }; + buildConfigurationList = 6B80EDCF1BC1AE4300283EB5 /* Build configuration list for PBXProject "MarsWater" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6B80EDCB1BC1AE4300283EB5; + productRefGroup = 6B80EDD51BC1AE4300283EB5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 6B80EDD31BC1AE4300283EB5 /* MarsWater */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 6B80EDD21BC1AE4300283EB5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6B80EDEA1BC1AE4300283EB5 /* LaunchScreen.storyboard in Resources */, + 6B80EDE71BC1AE4300283EB5 /* Assets.xcassets in Resources */, + 6B80EDE21BC1AE4300283EB5 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 6B80EDD01BC1AE4300283EB5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6B80EDE51BC1AE4300283EB5 /* MarsWater.xcdatamodeld in Sources */, + 6B80EDFD1BC1B32700283EB5 /* Task+CoreDataProperties.m in Sources */, + 6B765BC81BC337F2002DC96B /* TaskCreationTableViewController.m in Sources */, + 6B765BC51BC337D1002DC96B /* TaskTableViewController.m in Sources */, + 6B80EDDC1BC1AE4300283EB5 /* AppDelegate.m in Sources */, + 6B80EDFE1BC1B32700283EB5 /* Task.m in Sources */, + 6B80EE001BC1B32700283EB5 /* List.m in Sources */, + 6B80EDD91BC1AE4300283EB5 /* main.m in Sources */, + 6B80EE061BC1B93700283EB5 /* ListCreationTableViewController.m in Sources */, + 6B80EDFF1BC1B32700283EB5 /* List+CoreDataProperties.m in Sources */, + 6B80EE031BC1B92300283EB5 /* ListTableViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 6B80EDE01BC1AE4300283EB5 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6B80EDE11BC1AE4300283EB5 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 6B80EDE81BC1AE4300283EB5 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 6B80EDE91BC1AE4300283EB5 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 6B80EDEC1BC1AE4300283EB5 /* 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; + }; + 6B80EDED1BC1AE4300283EB5 /* 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; + }; + 6B80EDEF1BC1AE4300283EB5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = MarsWater/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = nyc.c4q.justinekay.MarsWater; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 6B80EDF01BC1AE4300283EB5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = MarsWater/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = nyc.c4q.justinekay.MarsWater; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 6B80EDCF1BC1AE4300283EB5 /* Build configuration list for PBXProject "MarsWater" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6B80EDEC1BC1AE4300283EB5 /* Debug */, + 6B80EDED1BC1AE4300283EB5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 6B80EDEE1BC1AE4300283EB5 /* Build configuration list for PBXNativeTarget "MarsWater" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6B80EDEF1BC1AE4300283EB5 /* Debug */, + 6B80EDF01BC1AE4300283EB5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + 6B80EDE31BC1AE4300283EB5 /* MarsWater.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + 6B80EDE41BC1AE4300283EB5 /* MarsWater.xcdatamodel */, + ); + currentVersion = 6B80EDE41BC1AE4300283EB5 /* MarsWater.xcdatamodel */; + path = MarsWater.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = 6B80EDCC1BC1AE4300283EB5 /* Project object */; +} diff --git a/SavingForever/SavingForever.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MarsWater/MarsWater.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 68% rename from SavingForever/SavingForever.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to MarsWater/MarsWater.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 43eb427..4acdfe2 100644 --- a/SavingForever/SavingForever.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/MarsWater/MarsWater.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:MarsWater.xcodeproj"> diff --git a/SavingForever/SavingForever/AppDelegate.h b/MarsWater/MarsWater/AppDelegate.h similarity index 81% rename from SavingForever/SavingForever/AppDelegate.h rename to MarsWater/MarsWater/AppDelegate.h index 6657831..7fe5645 100644 --- a/SavingForever/SavingForever/AppDelegate.h +++ b/MarsWater/MarsWater/AppDelegate.h @@ -1,9 +1,9 @@ // // AppDelegate.h -// SavingForever +// MarsWater // -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. // #import diff --git a/SavingForever/SavingForever/AppDelegate.m b/MarsWater/MarsWater/AppDelegate.m similarity index 93% rename from SavingForever/SavingForever/AppDelegate.m rename to MarsWater/MarsWater/AppDelegate.m index 29b2305..1c0869a 100644 --- a/SavingForever/SavingForever/AppDelegate.m +++ b/MarsWater/MarsWater/AppDelegate.m @@ -1,9 +1,9 @@ // // AppDelegate.m -// SavingForever +// MarsWater // -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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 "nyc.c4q.justinekay.MarsWater" 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:@"MarsWater" 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:@"MarsWater.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/MarsWater/MarsWater/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from SavingForever/SavingForever/Assets.xcassets/AppIcon.appiconset/Contents.json rename to MarsWater/MarsWater/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/MarsWater/MarsWater/Assets.xcassets/Contents.json b/MarsWater/MarsWater/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/MarsWater/MarsWater/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/MarsWater/MarsWater/Assets.xcassets/checkmark.imageset/Checkmark Filled-100 (1).png b/MarsWater/MarsWater/Assets.xcassets/checkmark.imageset/Checkmark Filled-100 (1).png new file mode 100644 index 0000000..86092b2 Binary files /dev/null and b/MarsWater/MarsWater/Assets.xcassets/checkmark.imageset/Checkmark Filled-100 (1).png differ diff --git a/MarsWater/MarsWater/Assets.xcassets/checkmark.imageset/Contents.json b/MarsWater/MarsWater/Assets.xcassets/checkmark.imageset/Contents.json new file mode 100644 index 0000000..dfa0dcc --- /dev/null +++ b/MarsWater/MarsWater/Assets.xcassets/checkmark.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Checkmark Filled-100 (1).png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SavingForever/SavingForever/Base.lproj/LaunchScreen.storyboard b/MarsWater/MarsWater/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from SavingForever/SavingForever/Base.lproj/LaunchScreen.storyboard rename to MarsWater/MarsWater/Base.lproj/LaunchScreen.storyboard diff --git a/MarsWater/MarsWater/Base.lproj/Main.storyboard b/MarsWater/MarsWater/Base.lproj/Main.storyboard new file mode 100644 index 0000000..e1f8778 --- /dev/null +++ b/MarsWater/MarsWater/Base.lproj/Main.storyboard @@ -0,0 +1,413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SavingForever/SavingForever/Info.plist b/MarsWater/MarsWater/Info.plist similarity index 100% rename from SavingForever/SavingForever/Info.plist rename to MarsWater/MarsWater/Info.plist diff --git a/MarsWater/MarsWater/List+CoreDataProperties.h b/MarsWater/MarsWater/List+CoreDataProperties.h new file mode 100644 index 0000000..ffbfa36 --- /dev/null +++ b/MarsWater/MarsWater/List+CoreDataProperties.h @@ -0,0 +1,25 @@ +// +// List+CoreDataProperties.h +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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) NSOrderedSet *task; + +@end + +NS_ASSUME_NONNULL_END diff --git a/MarsWater/MarsWater/List+CoreDataProperties.m b/MarsWater/MarsWater/List+CoreDataProperties.m new file mode 100644 index 0000000..6e9e7c8 --- /dev/null +++ b/MarsWater/MarsWater/List+CoreDataProperties.m @@ -0,0 +1,21 @@ +// +// List+CoreDataProperties.m +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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/MarsWater/MarsWater/List.h b/MarsWater/MarsWater/List.h new file mode 100644 index 0000000..cc84526 --- /dev/null +++ b/MarsWater/MarsWater/List.h @@ -0,0 +1,24 @@ +// +// List.h +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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/MarsWater/MarsWater/List.m b/MarsWater/MarsWater/List.m new file mode 100644 index 0000000..98eaa9c --- /dev/null +++ b/MarsWater/MarsWater/List.m @@ -0,0 +1,16 @@ +// +// List.m +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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/MarsWater/MarsWater/ListCreationTableViewController.h b/MarsWater/MarsWater/ListCreationTableViewController.h new file mode 100644 index 0000000..fa8e083 --- /dev/null +++ b/MarsWater/MarsWater/ListCreationTableViewController.h @@ -0,0 +1,16 @@ +// +// ListCreationTableViewController.h +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import +#import "List.h" + +@interface ListCreationTableViewController : UITableViewController + +@property (nonatomic)List *selectedList; + +@end diff --git a/MarsWater/MarsWater/ListCreationTableViewController.m b/MarsWater/MarsWater/ListCreationTableViewController.m new file mode 100644 index 0000000..0f93b44 --- /dev/null +++ b/MarsWater/MarsWater/ListCreationTableViewController.m @@ -0,0 +1,174 @@ +// +// ListCreationTableViewController.m +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import +#import "ListCreationTableViewController.h" +#import "AppDelegate.h" + +@interface ListCreationTableViewController () + +@property (weak, nonatomic) IBOutlet UITextField *titleTextField; + +@property (nonatomic)List *list; + +@property (nonatomic)BOOL colorButtonSelected; + +@end + +@implementation ListCreationTableViewController + +-(void)viewDidLoad{ + + [super viewDidLoad]; + + self.colorButtonSelected = NO; + + [self setupNavigationBar]; + + [self createNewList]; + +} + +-(void)createNewList{ + + if (self.selectedList == nil) { + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + + self.list = [NSEntityDescription insertNewObjectForEntityForName:@"List" inManagedObjectContext:delegate.managedObjectContext]; + } +} + +-(void)setupNavigationBar{ + + if (self.selectedList == nil) { + + self.navigationItem.title = @"Create New List"; + + }else { + + self.navigationItem.title = [NSString stringWithFormat:@"Edit '%@'", self.selectedList.title]; + + self.titleTextField.text = self.selectedList.title; + } + + self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel)]; + self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(save)]; + + self.navigationItem.leftBarButtonItem.tintColor = [UIColor grayColor]; + self.navigationItem.rightBarButtonItem.tintColor = [UIColor colorWithRed:224.0/255.0 green:35.0/255.0 blue:70.0/255.0 alpha:1.0]; +} + +-(void)cancel{ + + [self removeObjectFromNSManagedObjectContext:self.list]; + + [self dismissViewControllerAnimated:YES completion:nil]; + [self.navigationController popViewControllerAnimated:YES]; +} + +-(void)save{ + + if ([self.titleTextField.text isEqualToString:@""]) { + + [self emptyTextFieldAlertController]; + + }else if (self.colorButtonSelected == NO) { + + [self colorButtonAlertController]; + + }else { + + [self setNewListProperties]; + [self setSelectedListProperties]; + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + [delegate.managedObjectContext save:nil]; + + self.list = nil; + self.selectedList = nil; + + [self dismissViewControllerAnimated:YES completion:nil]; + + [self.navigationController popViewControllerAnimated:YES]; + + } + +} + +-(void)setNewListProperties{ + + if (self.list != nil) { + + self.list.title = self.titleTextField.text; + self.list.createdAt = [NSDate date]; + } +} + +-(void)setSelectedListProperties{ + + if (self.selectedList != nil) { + + self.selectedList.title = self.titleTextField.text; + } +} + + +#pragma mark - color button + +- (IBAction)colorButtonTapped:(UIButton *)sender { + + self.colorButtonSelected = YES; + + self.list.color = sender.backgroundColor; + self.selectedList.color = sender.backgroundColor; +} + +#pragma mark - alertController + +-(void)colorButtonAlertController{ + + UIAlertController* alert = [UIAlertController alertControllerWithTitle:nil + message:@"Please select a color." + preferredStyle:UIAlertControllerStyleAlert]; + + UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) {}]; + + [alert addAction:defaultAction]; + [self presentViewController:alert animated:YES completion:nil]; + +} + +-(void)emptyTextFieldAlertController{ + + UIAlertController* alert = [UIAlertController alertControllerWithTitle:nil + message:@"Please fill in the list title." + preferredStyle:UIAlertControllerStyleAlert]; + + UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) {}]; + + [alert addAction:defaultAction]; + [self presentViewController:alert animated:YES completion:nil]; + +} + +#pragma mark - NSManagedObjectContext + +-(void)removeObjectFromNSManagedObjectContext:(List *)list { + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + NSManagedObjectContext *context = delegate.managedObjectContext; + [context deleteObject:list]; + [context processPendingChanges]; + +} + + +@end diff --git a/MarsWater/MarsWater/ListTableViewController.h b/MarsWater/MarsWater/ListTableViewController.h new file mode 100644 index 0000000..851d655 --- /dev/null +++ b/MarsWater/MarsWater/ListTableViewController.h @@ -0,0 +1,13 @@ +// +// ListTableViewController.h +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import + +@interface ListTableViewController : UITableViewController + +@end diff --git a/MarsWater/MarsWater/ListTableViewController.m b/MarsWater/MarsWater/ListTableViewController.m new file mode 100644 index 0000000..b83d1c8 --- /dev/null +++ b/MarsWater/MarsWater/ListTableViewController.m @@ -0,0 +1,211 @@ +// +// ListTableViewController.m +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import +#import "ListCreationTableViewController.h" +#import "ListTableViewController.h" +#import "TaskTableViewController.h" +#import "TaskCreationTableViewController.h" +#import "AppDelegate.h" +#import "List.h" + +@interface ListTableViewController () + +@property(nonatomic) NSFetchedResultsController *fetchedResultsController; + +@property (nonatomic)List *selectedList; + +@end + +@implementation ListTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.tableView.backgroundColor = [UIColor groupTableViewBackgroundColor]; + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + + //Create an instance of NSFetchRequest with an entity name + NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] initWithEntityName:@"List"]; + + //create a sort descriptor + NSSortDescriptor *sort = [[NSSortDescriptor alloc] initWithKey:@"createdAt" ascending:NO]; + + //set the sort descriptors on the fetchRequest + fetchRequest.sortDescriptors = @[sort]; + + //create a fetchedResultsController with a fetchRequest and a managedObjectContext + self.fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:delegate.managedObjectContext sectionNameKeyPath:nil cacheName:nil]; + + self.fetchedResultsController.delegate = self; + + [self.fetchedResultsController performFetch:nil]; + +} + +#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]; + + NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; + [dateFormatter setDateFormat:@"yyyy-MM-dd 'at' HH:mm"]; + + List *list = self.fetchedResultsController.fetchedObjects[indexPath.row]; + + NSString *formattedDateString = [dateFormatter stringFromDate:list.createdAt]; + NSString *createdAtString = [NSString stringWithFormat:@"Created on: %@", formattedDateString]; + + cell.textLabel.text = list.title; + cell.detailTextLabel.text = createdAtString; + cell.backgroundColor = (UIColor *)list.color; + + return cell; +} + +-(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ + + return YES; +} + +-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ + + if (editingStyle == UITableViewCellEditingStyleDelete) { + + List *selectedList = self.fetchedResultsController.fetchedObjects[indexPath.row]; + [self removeObjectFromNSManagedObjectContext:selectedList]; + + } + +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ + + self.selectedList = self.fetchedResultsController.fetchedObjects[indexPath.row]; + + [self showAlertActionsForSelectedList:self.selectedList]; + +} + + +#pragma mark - NSFetchedResultsControllerDelegate protocols + +-(void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newIndexPath{ + + [self.tableView reloadData]; +} + + +#pragma mark - NSManagedObjectContext + +-(void)removeObjectFromNSManagedObjectContext:(List *)selectedList { + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + NSManagedObjectContext *context = delegate.managedObjectContext; + [context deleteObject:selectedList]; + [context processPendingChanges]; + +} + + +#pragma mark - alert controller + +-(void)showAlertActionsForSelectedList: (List *)selectedList { + + UIAlertController * view= [UIAlertController + alertControllerWithTitle:@"What would you like to do?" + message:nil + preferredStyle:UIAlertControllerStyleActionSheet]; + + UIAlertAction *addTask = [UIAlertAction + actionWithTitle:@"Add Task" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) + { + [self goToTasksForList:selectedList]; + + [self.tableView reloadData]; + + [view dismissViewControllerAnimated:YES completion:nil]; + + }]; + + UIAlertAction *edit = [UIAlertAction + actionWithTitle:@"Edit List" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) + { + + [self editSelectedList:selectedList]; + + [self.tableView reloadData]; + + [view dismissViewControllerAnimated:YES completion:nil]; + + }]; + + + UIAlertAction* cancel = [UIAlertAction + actionWithTitle:@"Cancel" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) + { + [view dismissViewControllerAnimated:YES completion:nil]; + + }]; + + + [view addAction:addTask]; + [view addAction:edit]; + [view addAction:cancel]; + + [self presentViewController:view animated:YES completion:nil]; +} + +#pragma mark - push listCreationTableViewController for selected list + +-(void)editSelectedList:(List *)selectedList { + + UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; + + ListCreationTableViewController *listCreationTVC = [storyboard instantiateViewControllerWithIdentifier:@"listCreationTableViewController"]; + listCreationTVC.selectedList = selectedList; + + [self.navigationController pushViewController:listCreationTVC animated:YES]; + +} + +-(void)goToTasksForList:(List *)selectedList{ + + UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; + + TaskTableViewController *taskTVC = [storyboard instantiateViewControllerWithIdentifier:@"taskTableViewController"]; + taskTVC.list = selectedList; + + + [self.navigationController pushViewController:taskTVC animated:YES]; + +} + + + + + +@end diff --git a/SavingForever/SavingForever/SavingForever.xcdatamodeld/.xccurrentversion b/MarsWater/MarsWater/MarsWater.xcdatamodeld/.xccurrentversion similarity index 83% rename from SavingForever/SavingForever/SavingForever.xcdatamodeld/.xccurrentversion rename to MarsWater/MarsWater/MarsWater.xcdatamodeld/.xccurrentversion index 352ed15..5c0cbd5 100644 --- a/SavingForever/SavingForever/SavingForever.xcdatamodeld/.xccurrentversion +++ b/MarsWater/MarsWater/MarsWater.xcdatamodeld/.xccurrentversion @@ -3,6 +3,6 @@ _XCCurrentVersionName - SavingForever.xcdatamodel + MarsWater.xcdatamodel diff --git a/MarsWater/MarsWater/MarsWater.xcdatamodeld/MarsWater.xcdatamodel/contents b/MarsWater/MarsWater/MarsWater.xcdatamodeld/MarsWater.xcdatamodel/contents new file mode 100644 index 0000000..a2fd0bb --- /dev/null +++ b/MarsWater/MarsWater/MarsWater.xcdatamodeld/MarsWater.xcdatamodel/contents @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MarsWater/MarsWater/Task+CoreDataProperties.h b/MarsWater/MarsWater/Task+CoreDataProperties.h new file mode 100644 index 0000000..9d5fe52 --- /dev/null +++ b/MarsWater/MarsWater/Task+CoreDataProperties.h @@ -0,0 +1,28 @@ +// +// Task+CoreDataProperties.h +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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 *dueDate; +@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/MarsWater/MarsWater/Task+CoreDataProperties.m b/MarsWater/MarsWater/Task+CoreDataProperties.m new file mode 100644 index 0000000..527f35b --- /dev/null +++ b/MarsWater/MarsWater/Task+CoreDataProperties.m @@ -0,0 +1,24 @@ +// +// Task+CoreDataProperties.m +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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 dueDate; +@dynamic updatedAt; +@dynamic priority; +@dynamic completedAt; +@dynamic list; + +@end diff --git a/MarsWater/MarsWater/Task.h b/MarsWater/MarsWater/Task.h new file mode 100644 index 0000000..748cff5 --- /dev/null +++ b/MarsWater/MarsWater/Task.h @@ -0,0 +1,22 @@ +// +// Task.h +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. 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/MarsWater/MarsWater/Task.m b/MarsWater/MarsWater/Task.m new file mode 100644 index 0000000..e916539 --- /dev/null +++ b/MarsWater/MarsWater/Task.m @@ -0,0 +1,15 @@ +// +// Task.m +// MarsWater +// +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import "Task.h" + +@implementation Task + +// Insert code here to add functionality to your managed object subclass + +@end diff --git a/MarsWater/MarsWater/TaskCreationTableViewController.h b/MarsWater/MarsWater/TaskCreationTableViewController.h new file mode 100644 index 0000000..6566aaa --- /dev/null +++ b/MarsWater/MarsWater/TaskCreationTableViewController.h @@ -0,0 +1,18 @@ +// +// TaskCreationTableViewController.h +// MarsWater +// +// Created by Justine Gartner on 10/5/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import +#import "List.h" + +@interface TaskCreationTableViewController : UITableViewController + +@property (nonatomic) List *list; +@property (nonatomic) Task *selectedTask; +@property (nonatomic) NSInteger selectedTaskIndexPathRow; + +@end diff --git a/MarsWater/MarsWater/TaskCreationTableViewController.m b/MarsWater/MarsWater/TaskCreationTableViewController.m new file mode 100644 index 0000000..81c3aa2 --- /dev/null +++ b/MarsWater/MarsWater/TaskCreationTableViewController.m @@ -0,0 +1,224 @@ +// +// TaskCreationTableViewController.m +// MarsWater +// +// Created by Justine Gartner on 10/5/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import "TaskCreationTableViewController.h" +#import "TaskTableViewController.h" +#import "Task.h" +#import "AppDelegate.h" + +@interface TaskCreationTableViewController () + +@property (weak, nonatomic) IBOutlet UITextField *taskTextField; +@property (weak, nonatomic) IBOutlet UIButton *highButton; +@property (weak, nonatomic) IBOutlet UIButton *lowButton; + +@property (nonatomic) BOOL priorityButtonSelected; + +@property (nonatomic) Task *task; + +@property (nonatomic) NSMutableOrderedSet *listTasks; + +@end + +@implementation TaskCreationTableViewController + +-(void)viewDidLoad{ + + [super viewDidLoad]; + + self.priorityButtonSelected = NO; + + self.taskTextField.text = @""; + + self.listTasks = self.list.task.mutableCopy; + + [self setupNavigationBar]; + + [self createNewTask]; + +} + +-(void)createNewTask{ + + if (self.selectedTask == nil) { + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + + self.task = [NSEntityDescription insertNewObjectForEntityForName:@"Task" inManagedObjectContext:delegate.managedObjectContext]; + } + +} + +-(void)setupNavigationBar{ + + if (self.selectedTask == nil) { + + self.navigationItem.title = [NSString stringWithFormat:@"Add New Task to '%@'", self.list.title]; + + }else { + + self.navigationItem.title = [NSString stringWithFormat:@"Edit '%@'", self.selectedTask.taskDescription]; + + self.taskTextField.text = self.selectedTask.taskDescription; + + } + + self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel)]; + self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(save)]; + + self.navigationItem.leftBarButtonItem.tintColor = [UIColor grayColor]; + self.navigationItem.rightBarButtonItem.tintColor = [UIColor colorWithRed:224.0/255.0 green:35.0/255.0 blue:70.0/255.0 alpha:1.0]; +} + +-(void)cancel{ + + [self dismissViewControllerAnimated:YES completion:nil]; + [self.navigationController popViewControllerAnimated:YES]; +} + +-(void)save{ + + if ([self.taskTextField.text isEqualToString:@""]) { + + [self emptyTextFieldAlertController]; + + }else if (self.priorityButtonSelected == NO) { + + [self priorityAlertController]; + + }else { + + //set task properties + + [self setNewTaskProperties]; + [self setSelectedTaskProperties]; + + + //update List's Task (NSOrderedSet) + + self.list.task = self.listTasks; + + + //save task with NSManagedObjectContext + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + + [delegate.managedObjectContext save:nil]; + + + //clear self.task & self.selectedTask + + self.task = nil; + self.selectedTask = nil; + + [self dismissViewControllerAnimated:YES completion:nil]; + + [self.navigationController popViewControllerAnimated:YES]; + + } + +} + +#pragma mark - task properties + +-(void)setNewTaskProperties{ + + if (self.task != nil){ + + self.task.taskDescription = self.taskTextField.text; + + self.task.createdAt = [NSDate date]; + } +} + +-(void)setSelectedTaskProperties{ + + if (self.selectedTask != nil) { + + self.selectedTask.taskDescription = self.taskTextField.text; + + self.selectedTask.updatedAt = [NSDate date]; + } +} + + +#pragma mark - priority button + +- (IBAction)priorityButtonTapped:(UIButton *)sender forTask: (Task *)task{ + + self.priorityButtonSelected = YES; + + if (self.selectedTask == nil) { + + task = self.task; + + if (sender == self.highButton) { + + [self.listTasks insertObject:task atIndex:0]; + + }else if (sender == self.lowButton){ + + [self.listTasks insertObject:task atIndex:self.listTasks.count]; + } + + }else { + + task = self.selectedTask; + + + NSMutableIndexSet *movedTaskIndex = [[NSMutableIndexSet alloc] init]; + + [movedTaskIndex addIndex:self.selectedTaskIndexPathRow]; + + + if (sender == self.highButton) { + + [self.listTasks moveObjectsAtIndexes:movedTaskIndex toIndex:0]; + + }else if (sender == self.lowButton){ + + [self.listTasks moveObjectsAtIndexes:movedTaskIndex toIndex:self.listTasks.count - 1]; + } + } + + + +} + + +#pragma mark - alertController + +-(void)priorityAlertController{ + + UIAlertController* alert = [UIAlertController alertControllerWithTitle:nil + message:@"Please select a priority level." + preferredStyle:UIAlertControllerStyleAlert]; + + UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) {}]; + + [alert addAction:defaultAction]; + [self presentViewController:alert animated:YES completion:nil]; + +} + +-(void)emptyTextFieldAlertController{ + + UIAlertController* alert = [UIAlertController alertControllerWithTitle:nil + message:@"Please fill in the task description." + preferredStyle:UIAlertControllerStyleAlert]; + + UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) {}]; + + [alert addAction:defaultAction]; + [self presentViewController:alert animated:YES completion:nil]; + +} + +@end diff --git a/MarsWater/MarsWater/TaskTableViewController.h b/MarsWater/MarsWater/TaskTableViewController.h new file mode 100644 index 0000000..2a71a6b --- /dev/null +++ b/MarsWater/MarsWater/TaskTableViewController.h @@ -0,0 +1,16 @@ +// +// TaskTableViewController.h +// MarsWater +// +// Created by Justine Gartner on 10/5/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import +#import "List.h" + +@interface TaskTableViewController : UITableViewController + +@property (nonatomic) List *list; + +@end diff --git a/MarsWater/MarsWater/TaskTableViewController.m b/MarsWater/MarsWater/TaskTableViewController.m new file mode 100644 index 0000000..5af229f --- /dev/null +++ b/MarsWater/MarsWater/TaskTableViewController.m @@ -0,0 +1,216 @@ +// +// TaskTableViewController.m +// MarsWater +// +// Created by Justine Gartner on 10/5/15. +// Copyright © 2015 Justine Gartner. All rights reserved. +// + +#import +#import "TaskTableViewController.h" +#import "TaskCreationTableViewController.h" +#import "AppDelegate.h" +#import "Task.h" + +@interface TaskTableViewController () + +@property (nonatomic) Task *selectedTask; + +@end + +@implementation TaskTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.navigationItem.title = self.list.title; + + self.tableView.backgroundColor = self.list.color; + self.tableView.backgroundView.backgroundColor = self.list.color; +} + +-(void)viewWillAppear:(BOOL)animated{ + + [self.tableView reloadData]; +} + + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + + return self.list.task.count; +} + + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"TaskCellIdentifier" forIndexPath:indexPath]; + + Task *task = self.list.task[indexPath.row]; + + NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; + [dateFormatter setDateFormat:@"yyyy-MM-dd 'at' HH:mm"]; + + NSString *formattedDateString = [dateFormatter stringFromDate:task.completedAt]; + NSString *completedOnString = [NSString stringWithFormat:@"Completed on: %@", formattedDateString]; + + cell.textLabel.text = task.taskDescription; + cell.backgroundColor = self.list.color; + + UIImage *checkmark = [UIImage imageNamed:@"checkmark"]; + + if (task.completedAt == nil) { + + cell.detailTextLabel.text = @""; + cell.imageView.image = nil; + + }else { + + cell.imageView.image = checkmark; + cell.detailTextLabel.text = completedOnString; + } + + + return cell; +} + +-(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ + + return YES; +} + +-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ + + if (editingStyle == UITableViewCellEditingStyleDelete) { + + Task *selectedTask = self.list.task[indexPath.row]; + [self removeObjectFromNSManagedObjectContext:selectedTask]; + + [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; + + } + +} + +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ + + self.selectedTask = self.list.task[indexPath.row]; + + [self showAlertActionsForSelectedTask:self.selectedTask atIndexPathRow:indexPath.row]; + +} + + +#pragma mark - segue + +-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ + + UINavigationController *navController = segue.destinationViewController; + + TaskCreationTableViewController *taskCreationTVC = (TaskCreationTableViewController *)([navController viewControllers][0]); + taskCreationTVC.list = self.list; +} + +#pragma mark - NSManagedObjectContext + +-(void)removeObjectFromNSManagedObjectContext:(Task *)selectedTask { + + AppDelegate *delegate = [UIApplication sharedApplication].delegate; + NSManagedObjectContext *context = delegate.managedObjectContext; + [context deleteObject:selectedTask]; + [context processPendingChanges]; + +} + +#pragma mark - alert controller + +-(void)showAlertActionsForSelectedTask: (Task *)selectedTask atIndexPathRow: (NSInteger)indexPathRow{ + + UIAlertController * view= [UIAlertController + alertControllerWithTitle:@"What would you like to do?" + message:nil + preferredStyle:UIAlertControllerStyleActionSheet]; + + UIAlertAction *markAsDone = [UIAlertAction + actionWithTitle:@"Mark Done" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) + { + //Give task a completedAt property + + selectedTask.completedAt = [NSDate date]; + + //Move task to bottom of list.task + + NSMutableIndexSet *movedTaskIndex = [[NSMutableIndexSet alloc] init]; + [movedTaskIndex addIndex:indexPathRow]; + + NSMutableOrderedSet *listTasks = self.list.task.mutableCopy; + + [listTasks moveObjectsAtIndexes:movedTaskIndex toIndex:self.list.task.count - 1]; + + self.list.task = listTasks; + + [self.tableView reloadData]; + + [view dismissViewControllerAnimated:YES completion:nil]; + + }]; + + UIAlertAction *edit = [UIAlertAction + actionWithTitle:@"Edit Task" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) + { + + selectedTask.completedAt = nil; + + [self editSelectedTask:selectedTask atIndexPathRow:indexPathRow]; + + [self.tableView reloadData]; + + [view dismissViewControllerAnimated:YES completion:nil]; + + }]; + + + UIAlertAction* cancel = [UIAlertAction + actionWithTitle:@"Cancel" + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * action) + { + [view dismissViewControllerAnimated:YES completion:nil]; + + }]; + + + [view addAction:markAsDone]; + [view addAction:edit]; + [view addAction:cancel]; + + [self presentViewController:view animated:YES completion:nil]; +} + + +#pragma mark - push taskCreationTableViewController for selected task + +-(void)editSelectedTask:(Task *)selectedTask atIndexPathRow: (NSInteger)indexPathRow { + + UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; + + TaskCreationTableViewController *taskCreationTVC = [storyboard instantiateViewControllerWithIdentifier:@"taskCreationTableViewController"]; + taskCreationTVC.list = self.list; + taskCreationTVC.selectedTask = selectedTask; + taskCreationTVC.selectedTaskIndexPathRow = indexPathRow; + + [self.navigationController pushViewController:taskCreationTVC animated:YES]; + +} + + +@end diff --git a/SavingForever/SavingForever/main.m b/MarsWater/MarsWater/main.m similarity index 64% rename from SavingForever/SavingForever/main.m rename to MarsWater/MarsWater/main.m index 0d1314d..5c2db3b 100644 --- a/SavingForever/SavingForever/main.m +++ b/MarsWater/MarsWater/main.m @@ -1,9 +1,9 @@ // // main.m -// SavingForever +// MarsWater // -// Created by Michael Kavouras on 10/4/15. -// Copyright © 2015 Michael Kavouras. All rights reserved. +// Created by Justine Gartner on 10/4/15. +// Copyright © 2015 Justine Gartner. All rights reserved. // #import 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