added ability to query aggregates and attributes straight from the persistent store

This commit is contained in:
John Rommel Estropia
2015-03-18 01:25:58 +09:00
parent 13ca911d77
commit bf41605da9
28 changed files with 1311 additions and 488 deletions

View File

@@ -105,7 +105,7 @@ public final class DataStack {
var error: NSError?
var store: NSPersistentStore?
coordinator.performSynchronously {
coordinator.performBlockAndWait {
store = coordinator.addPersistentStoreWithType(
NSInMemoryStoreType,
@@ -203,7 +203,7 @@ public final class DataStack {
var store: NSPersistentStore?
var persistentStoreError: NSError?
coordinator.performSynchronously {
coordinator.performBlockAndWait {
store = coordinator.addPersistentStoreWithType(
NSSQLiteStoreType,
@@ -238,7 +238,7 @@ public final class DataStack {
error: nil)
var store: NSPersistentStore?
coordinator.performSynchronously {
coordinator.performBlockAndWait {
store = coordinator.addPersistentStoreWithType(
NSSQLiteStoreType,