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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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!
