From 8f544cde201a2ee2fef16cfe566935ec30794d1a Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Sun, 4 Oct 2015 17:35:11 -0400 Subject: [PATCH 1/2] my project --- CoreDataExamples/.DS_Store | Bin 0 -> 6148 bytes .../project.pbxproj | 580 ++++++++++++++++++ .../contents.xcworkspacedata | 2 +- .../CoreDataExamples}/AppDelegate.h | 6 +- .../CoreDataExamples}/AppDelegate.m | 12 +- .../AppIcon.appiconset/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../Base.lproj/Main.storyboard | 214 +++++++ .../.xccurrentversion | 2 +- .../CoreDataExamples.xcdatamodel/contents | 22 + .../CoreDataExamples}/Info.plist | 0 .../List+CoreDataProperties.h | 25 + .../List+CoreDataProperties.m | 21 + CoreDataExamples/CoreDataExamples/List.h | 24 + CoreDataExamples/CoreDataExamples/List.m | 16 + .../ListsCreationTableViewController.h | 13 + .../ListsCreationTableViewController.m | 69 +++ .../ListsTableViewController.h | 13 + .../ListsTableViewController.m | 84 +++ .../Task+CoreDataProperties.h | 28 + .../Task+CoreDataProperties.m | 24 + CoreDataExamples/CoreDataExamples/Task.h | 22 + CoreDataExamples/CoreDataExamples/Task.m | 15 + .../CoreDataExamples}/main.m | 6 +- .../CoreDataExamplesTests.m | 39 ++ .../CoreDataExamplesTests/Info.plist | 24 + .../CoreDataExamplesUITests.m | 40 ++ .../CoreDataExamplesUITests/Info.plist | 24 + .../SavingForever.xcodeproj/project.pbxproj | 322 ---------- .../SavingForever/Base.lproj/Main.storyboard | 25 - .../SavingForever.xcdatamodel/contents | 4 - SavingForever/SavingForever/ViewController.h | 15 - SavingForever/SavingForever/ViewController.m | 27 - 33 files changed, 1311 insertions(+), 407 deletions(-) create mode 100644 CoreDataExamples/.DS_Store create mode 100644 CoreDataExamples/CoreDataExamples.xcodeproj/project.pbxproj rename {SavingForever/SavingForever.xcodeproj => CoreDataExamples/CoreDataExamples.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (67%) rename {SavingForever/SavingForever => CoreDataExamples/CoreDataExamples}/AppDelegate.h (81%) rename {SavingForever/SavingForever => CoreDataExamples/CoreDataExamples}/AppDelegate.m (93%) rename {SavingForever/SavingForever => CoreDataExamples/CoreDataExamples}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {SavingForever/SavingForever => CoreDataExamples/CoreDataExamples}/Base.lproj/LaunchScreen.storyboard (100%) create mode 100644 CoreDataExamples/CoreDataExamples/Base.lproj/Main.storyboard rename {SavingForever/SavingForever/SavingForever.xcdatamodeld => CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld}/.xccurrentversion (82%) create mode 100644 CoreDataExamples/CoreDataExamples/CoreDataExamples.xcdatamodeld/CoreDataExamples.xcdatamodel/contents rename {SavingForever/SavingForever => CoreDataExamples/CoreDataExamples}/Info.plist (100%) create mode 100644 CoreDataExamples/CoreDataExamples/List+CoreDataProperties.h create mode 100644 CoreDataExamples/CoreDataExamples/List+CoreDataProperties.m create mode 100644 CoreDataExamples/CoreDataExamples/List.h create mode 100644 CoreDataExamples/CoreDataExamples/List.m create mode 100644 CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.h create mode 100644 CoreDataExamples/CoreDataExamples/ListsCreationTableViewController.m create mode 100644 CoreDataExamples/CoreDataExamples/ListsTableViewController.h create mode 100644 CoreDataExamples/CoreDataExamples/ListsTableViewController.m create mode 100644 CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.h create mode 100644 CoreDataExamples/CoreDataExamples/Task+CoreDataProperties.m create mode 100644 CoreDataExamples/CoreDataExamples/Task.h create mode 100644 CoreDataExamples/CoreDataExamples/Task.m rename {SavingForever/SavingForever => CoreDataExamples/CoreDataExamples}/main.m (64%) create mode 100644 CoreDataExamples/CoreDataExamplesTests/CoreDataExamplesTests.m create mode 100644 CoreDataExamples/CoreDataExamplesTests/Info.plist create mode 100644 CoreDataExamples/CoreDataExamplesUITests/CoreDataExamplesUITests.m create mode 100644 CoreDataExamples/CoreDataExamplesUITests/Info.plist delete mode 100644 SavingForever/SavingForever.xcodeproj/project.pbxproj delete mode 100644 SavingForever/SavingForever/Base.lproj/Main.storyboard delete mode 100644 SavingForever/SavingForever/SavingForever.xcdatamodeld/SavingForever.xcdatamodel/contents delete mode 100644 SavingForever/SavingForever/ViewController.h delete mode 100644 SavingForever/SavingForever/ViewController.m diff --git a/CoreDataExamples/.DS_Store b/CoreDataExamples/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b73d2a6c75f124ed04ed75d87100958286c07c7a GIT binary patch literal 6148 zcmeHK!Ab)`41K9RRJ`;kp5_aLdg*nk+b^geVA&O=blF8)@VMXT7x*c@OhRd?UW$m6 z1d=zCO=frAz+?kJX4`rKi~)?Oii1mC)BA>7o@d3FnzN3PEmrI2$)akT&NlV=aOyfuTbA{9Qvn~-yH#H8 zr0;3k`d8NJUiS7SDSuFyU?3O>2F{ED)@+s0m0{RmAQ%V+b`0qKkf@4 + 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 From 673af7f3a942dabb1ece220bcee38d2a3542c734 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Sun, 4 Oct 2015 17:37:57 -0400 Subject: [PATCH 2/2] my project --- CoreDataExamples/.DS_Store | Bin 6148 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/CoreDataExamples/.DS_Store b/CoreDataExamples/.DS_Store index b73d2a6c75f124ed04ed75d87100958286c07c7a..c8bf7866ea41623add25b0d2ed5f3198cefb51a0 100644 GIT binary patch delta 19 acmZoMXffCj#KiPicJdr1tId5(WugE@7Y3*R delta 19 acmZoMXffCj#KiO