ManagedModels
ManagedModels copied to clipboard
A SwiftData like `@Model` infrastructure for CoreData.
Probably easy? Not sure how important that is. The entity builder would "just" have to generate the parent entity and hook that up?
Building upon Issue #7, an actual DocC tutorial would be nice.
Regular CoreData migration should work just fine, but it would be nice to have support for the SwiftData style setup. The types are already in place, but the functionality would...
If the dev didn't specify an own initialiser, the macro should generate one, similar to what Swift itself already does for structures. E.g.: ```swift @Model class Item: NSManagedObject { var...
This doesn't seem too hard, setup a watcher for scene notifications and trigger a save if the autosave property is set.
`NSManagedObject` itself provides a `fetchRequest` method, but that is type erased. So we should generate a fetchRequest method that overloads with the actual model type. I think I might have...
Follow up to #22 by @HealsCodes: I've been playing around with Predicates + ManagedModels but always run into a dead-end seemingly because Model properties aren't [exposed to the underlying Objective-C...