O'Reilly logo

RestKit for iOS by Taras Kalapun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mogenerator

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.

To install mogenerator, one can use the Homebrew package manager (instructions on how to install it can be found on its home page available at ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required