mogenerator is a command-line tool that, given an
.xcdatamodel file, will generate two classes per entity. The first class,
_MyEntity, is intended solely for machine consumption and will be continuously overwritten to stay in sync with your data model. The second class,
MyEntity, a subclass of
_MyEntity, won't ever be overwritten and is a great place to put your custom logic.
Mostly, it is useful if a Core Data model is rapidly changing, and you have your own entity helper methods. In addition to speed up generation, you will just fire a
mogenerator command, or even create a prebuild script.
mogenerator, one can use the Homebrew package manager (instructions on how to install it can be found on its home page available at ...