diff --git a/CoreStoreDemo/CoreStoreDemo/Fetching and Querying Demo/FetchingAndQueryingDemoViewController.swift b/CoreStoreDemo/CoreStoreDemo/Fetching and Querying Demo/FetchingAndQueryingDemoViewController.swift index 365982f..5073683 100644 --- a/CoreStoreDemo/CoreStoreDemo/Fetching and Querying Demo/FetchingAndQueryingDemoViewController.swift +++ b/CoreStoreDemo/CoreStoreDemo/Fetching and Querying Demo/FetchingAndQueryingDemoViewController.swift @@ -37,7 +37,7 @@ private struct Static { cachedTimeZone.daylightSavingTimeOffset = rawTimeZone.daylightSavingTimeOffset } - transaction.commit() + transaction.commitAndWait() } return dataStack diff --git a/CoreStoreDemo/CoreStoreDemo/List and Object Observers Demo/ObjectObserverDemoViewController.swift b/CoreStoreDemo/CoreStoreDemo/List and Object Observers Demo/ObjectObserverDemoViewController.swift index a97e836..09145ec 100644 --- a/CoreStoreDemo/CoreStoreDemo/List and Object Observers Demo/ObjectObserverDemoViewController.swift +++ b/CoreStoreDemo/CoreStoreDemo/List and Object Observers Demo/ObjectObserverDemoViewController.swift @@ -61,7 +61,7 @@ class ObjectObserverDemoViewController: UIViewController, ObjectObserver { let palette = transaction.create(Into(Palette)) palette.setInitialValues() - transaction.commit() + transaction.commitAndWait() } let palette = CoreStore.fetchOne(From(Palette), OrderBy(.Ascending("hue")))! diff --git a/CoreStoreDemo/CoreStoreDemo/Stack Setup Demo/StackSetupDemoViewController.swift b/CoreStoreDemo/CoreStoreDemo/Stack Setup Demo/StackSetupDemoViewController.swift index 2c8fd6c..7cbd016 100644 --- a/CoreStoreDemo/CoreStoreDemo/Stack Setup Demo/StackSetupDemoViewController.swift +++ b/CoreStoreDemo/CoreStoreDemo/Stack Setup Demo/StackSetupDemoViewController.swift @@ -43,7 +43,7 @@ private struct Static { account2.name = "Jane Doe HCD" account2.friends = 314 - transaction.commit() + transaction.commitAndWait() } return dataStack @@ -77,7 +77,7 @@ private struct Static { account2.name = "#janedoe_hcd" account2.friends = 100 - transaction.commit() + transaction.commitAndWait() } return dataStack diff --git a/CoreStoreDemo/CoreStoreDemo/Transactions Demo/TransactionsDemoViewController.swift b/CoreStoreDemo/CoreStoreDemo/Transactions Demo/TransactionsDemoViewController.swift index 5e8fdce..9719349 100644 --- a/CoreStoreDemo/CoreStoreDemo/Transactions Demo/TransactionsDemoViewController.swift +++ b/CoreStoreDemo/CoreStoreDemo/Transactions Demo/TransactionsDemoViewController.swift @@ -32,7 +32,7 @@ private struct Static { let place = transaction.create(Into(Place)) place.setInitialValues() - transaction.commit() + transaction.commitAndWait() } place = CoreStore.fetchOne(From(Place)) } @@ -181,7 +181,7 @@ class TransactionsDemoViewController: UIViewController, MKMapViewDelegate, Objec let place = transaction.edit(Static.placeController.object) place?.setInitialValues() - transaction.commit() + transaction.commitAndWait() } } diff --git a/README.md b/README.md index be1e03c..b6e1c5f 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ Unleashing the real power of Core Data with the elegance and safety of Swift * Swift 2.2 (Xcode 7.3) * iOS 8+ / OSX 10.10+ / watchOS 2.0+ / tvOS 9.0+ -[Click here for a wiki version of this README](https://github.com/JohnEstropia/CoreStore/wiki) - ## What CoreStore does better: