mrlegowatch / GarageStorageSwift

A Swift implementation of GarageStorage. Provides a convenient way to store any kind of data in a repository backed by Core Data.
MIT License
8 stars 1 forks source link

Change GarageModel to not subclass from NSManagedObjectModel #16

Closed mrlegowatch closed 3 years ago

mrlegowatch commented 3 years ago

GarageModel declares itself as a subclass of NSManagedObjectModel and overrides init() which requires overriding initWithCoder(). That can cause problems with secure coding checking. It only needs to be two helper functions: one to create the NSManagedObjectModel instance with the appropriate model properties, and the other for makeEntity.