-
see http://holko.pl/2016/06/23/core-data/ for how this will make concurrency better.
also https://swifting.io/blog/2016/09/25/25-core-data-in-ios10-nspersistentcontainer/
spnkr updated
4 years ago
-
NSPersistentContainer's `newBackgroundContext()` documentation states that the created context is setup to automatically consume didSave notifications. Yet, the syncContext in SyncContextOwner still m…
-
I hit a nasty bug with the new code deployed to production. It's not a bug in the document class per se, but how I was using it, so I wanted to share a description of the problem. Maybe we can offer u…
-
We currently pass around `NSManagedObjectContext` objects in many places – namely View Controllers and services.
In these cases, we often make changes directly to the `mainContext`, [which is incom…
-
Is it possible to create/open a core data file from this Package ?
In the init() function could one create an NSPersistentContainer in the main directory and then have the MOC as a variable on th…
-
Hi, i want to store the CoreData Container with a custom URL to share it with a widget extension.
Here is my code:
```swift
let accessToken = SingleCoreDataStore(databaseName: "accessToken") { ob…
-
I have a project built with Xcode 12.2, Swift 5.3.2, and Core Data. Now I need to secure my core data with this library. I have already done lightweight migration for the project. How do I configure a…
-
I have an app which stores an entity `class EntityA: NSManagedObject {...}`
I have the following simplified CoreData code to fetch this entity
```
let container = NSPersistentContainer(name: "M…
-
Apple added NSPersistentContainer which makes setup of CoreData much easier, same as part of CoreStore does.
CoreStore is really cool CD wrapper, I would love to use it in my project, except one "but…
-
- Go to both app and extension target, under Capabilities, enable AppGroup
- Specify `$(TeamIdentifierPrefix)group.com.onmyway133.MyApp`
- `$(TeamIdentifierPrefix)` will expand to something like `T7…