When I try to do this, the model is stored in the NSManagedObjectContext if I use the context, and without it it throws an error, but I'm not expectin ...
When I try to do this, the model is stored in the NSManagedObjectContext if I use the context, and without it it throws an error, but I'm not expectin ...
I am testing CoreData+CloudKit, i.e. I am using an NSPersistentCloudKitContainer that handles all communication with iCloud. When I launch the app, Co ...
I am working through Paul Hudson's 100 Days of SwiftUI and on Project 11 have hit a frustrating issue with CoreData. This is a direct lift of Paul's c ...
I created a method to build an frc: I want to call something like this from within a closure: but I'm getting this error: "Cannot convert v ...
I am suddenly getting a bunch of warnings on iOS12/XCode 9. Why are there multiple managedObjectModels ? The app only has one *.xcdatamodeld file but ...
I have an entity which has attributes that get populated from 5 view controllers. The app is basically a detailed form based questionnaire with 5 que ...
That's very strange. I have a Model with three Entities. Like this: In InterfaceBuilder I made NSArrayController connected to MOC via RepresentedObj ...
I have an macOS app being developed in Xcode (8.3.2) in SWIFT. I have a CoreData model with a number of entities and an identifier (myidentifier). I ...
I am trying to translate my code from Objective-C to Swift but for NSManagedObjectModel I get this error: Use of undeclared type NSManagedObjectMo ...
Using Fabrics crash analytics or "Crashlytics" I am getting a large amount of crashes (I assume BAD_ACCESS) from the following method/property : By ...
I reworked the core data model for my app, beyond the point where lightweight migration would work. So I now have two core data models in the app bund ...
I am using Xcode 8 and swift 3, i'm create NSManagedObject for my entity from Editor menu, NSManageObjectModel, how can use this file for fetch and cr ...
When a Core Data app is in early development, its Managed Object Model is often in constant flux. For each build, new Managed Objects and properties a ...
My app uses CoreData framework and I want to check compatibility between a store metadata and a managed object model. I do it standard way: and it ...
I'm looking to speed up queries to my SQL backed CoreData instance (displaying records sorted by date). I know that indexing can help decrease query t ...
I am new to core data. I am trying to implement it in the object oriented way. As a sample project, I created a View Controller which shows data from ...
As 99% of iOS apps, mine has a main screen with a long list of items, and when a user taps one, he sees item details. Pretty much straightforward. Let ...
There are several reasons why somebody wants to merge multiple NSManagedObjectModel's. If you search the web, all responses are that it is not possibl ...
I have a User model class (generated by XCode with Swift): And it's extension: I can save/fetch data from CoreData. But can I use this class for ...
In iOS 9, I can specify certain attributes in an entity to be unique constraints to prevent managed objects with the same unique constraints to be cre ...