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.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.update()

View File

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

View File

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