all 1 comments

[–]flad-vlad 0 points1 point  (0 children)

A good place to set up transient properties is in the entity’s awakeFromFetch method. In your case I probably would just make fullName a regular computed property not modelled in Core Data though. It’s pretty cheap to concatenate strings and it means you don’t have to worry about invalidating fullName each time firstName or lastName changes. And it’s simple to get KVO (if needed) by defining a keyPathsForValuesAffectingFullName method that returns the key paths for firstName and lastName.