When developing a basic data model in Xcode, you can automatically generate NSManagedObject subclass definitions (.m and .h files) on
- Entity Selection
- Select "Subclass NSManagedObject" on the EDITOR Menu
After that, you can add a lot of code to these classes, what if after that you have to change the data model a little for some reason? To reflect these changes in the data model, is there any automatic way to do this? or you need to do everything manually.
Currently, if I try again to recreate this class definition from the EDIT menu (automatically), it will replace all current files. All added code will disappear.
I really hope that a future version of Xcode can add a smart feature: automatically update the default class definition without losing the added work. Maybe I'm too lazy. :)
horacex
source share