Fixes outdated Game and SaveState Attributes enums

This commit is contained in:
Riley Testut 2016-07-13 02:46:11 -05:00
parent a8ca3ef547
commit 056e8aba6e
3 changed files with 4 additions and 3 deletions

View File

@ -62,9 +62,9 @@ class GameCollectionViewDataSource: NSObject
fetchRequest.predicate = CompoundPredicate(orPredicateWithSubpredicates: predicates) fetchRequest.predicate = CompoundPredicate(orPredicateWithSubpredicates: predicates)
} }
fetchRequest.sortDescriptors = [SortDescriptor(key: Game.Attributes.typeIdentifier.rawValue, ascending: true), SortDescriptor(key: Game.Attributes.name.rawValue, ascending: true)] fetchRequest.sortDescriptors = [SortDescriptor(key: Game.Attributes.type.rawValue, ascending: true), SortDescriptor(key: Game.Attributes.name.rawValue, ascending: true)]
self.fetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: DatabaseManager.sharedManager.managedObjectContext, sectionNameKeyPath: Game.Attributes.typeIdentifier.rawValue, cacheName: nil) self.fetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: DatabaseManager.sharedManager.managedObjectContext, sectionNameKeyPath: Game.Attributes.type.rawValue, cacheName: nil)
self.fetchedResultsController.delegate = previousDelegate self.fetchedResultsController.delegate = previousDelegate
self.update() self.update()

View File

@ -21,7 +21,7 @@ extension Game
case filename case filename
case identifier case identifier
case name case name
case typeIdentifier case type
case gameCollections case gameCollections
case saveStates case saveStates

View File

@ -21,6 +21,7 @@ extension SaveState
case creationDate case creationDate
case modifiedDate case modifiedDate
case type case type
case gameType
case game case game
case previewGame case previewGame