Can I add standard ivars and properties to an NSManagedObject?

ios, nsmanagedobject, objective-c, properties

Solution

In this case "transient properties" are commonly used. You declare them in your Core Data Model like your other Entity properties but flag them as "transient" in the data model inspector. They are part of your Core Data model, but not persisted!

Problem

Can I add standard properties to an NSManagedObject. I don't expect these objects to be saved, but I would like them to persist for the lifetime that the application is running. Can I add a getter and setter backed with an ivar?

Original source

Related problems