I have a subclass of an NSManagedObject, and I'd like to add a couple ivars to keep track of some book-keeping. I don't want these vars to persist, and so that is why I don't include them as part of the data model.
I'm having trouble finding the proper way of doing this.
- should I just create ivars in my class, create the corresponding property and then synthesis them in the implementation?
- should I not create ivars, and instead just declare the property and then @dynamic the property in the implmentation?
- is there some other approach i should be taking?
And should I be doing all the customization in the my NSManagedObject subclass, or should I be creating a subclass of my subclass, so that if I change my data model I won't lose all my customizations when I get xcode to generate my NSManagedObject subclass automatically?
Thanks!
