Generate Objective-C code for your Core Data custom classes
Unlike Xcode, mogenerator manages two classes per entity: one for machines, one for humans.
The machine class can always be overwritten to match the data model, with humans’ work effortlessly preserved
Xmo’d seamlessly integrates mogenerator into Xcode. Xmo'd (pronounced ex-mowed) is an Xcode plugin that integrates mogenerator into Xcode.
Xmo’d saves you the hassle of having to write a Run Script Build Phase and/or manually adding+removing source files from your project as you add+remove entities.
In a hurry? Add it to your Download Basket!
What's New in This Release:
- [NEW] `--v2` argument. I wanted to enable ARC by default, but decided to take it a step further (while not breaking existing scripts). The new `--v2` argument is basically [semantic versioning](http://semver.org) for tool arguments.
- [NEW] Experimental Swift code generation. Unfortunately basic Core Data functionality ([to-one relationships](http://stackoverflow.com/q/24688969/5260)) is broken on 10.9, but we can still try writing theoretically-correct Swift code. Perhaps a future version of mogenerator will supply the needed work-around code for you. ([Alexsander Akers](https://github.com/rentzsch/mogenerator/pull/203), [afrederick1](https://github.com/rentzsch/mogenerator/pull/209), [Piet Brauer](https://github.com/rentzsch/mogenerator/pull/215), [rentzsch](https://github.com/rentzsch/mogenerator/commit/b7c029c43384c6aa0455605e7d253a4ff60e1c10), [Chris Weber](https://github.com/rentzsch/mogenerator/pull/234), [Markus Chmelar](https://github.com/rentzsch/mogenerator/pull/237), [Brent Royal-Gordon](https://github.com/rentzsch/mogenerator/pull/247))
- [NEW] Ordered relationships actually work. [OMG](https://twitter.com/rentzsch/status/281816512489218048). I have them working in a new separate OS X test app, even though [mogenerator's test dir](https://github.com/rentzsch/mogenerator/tree/master/test) fails. I still haven't figured out why, but I'm not holding this back. ([Daniel Tull](https://github.com/rentzsch/mogenerator/pull/140), [Joshua Greene](https://github.com/rentzsch/mogenerator/commit/a971c391b7f720f30934de439519bd3ecda4d453), [Dave Wood](https://github.com/rentzsch/mogenerator/commit/6a5f27b68c70b3b7688cb02c6a4c957c49baba17), [Jonathan del Strother](https://github.com/rentzsch/mogenerator/pull/231))
- [NEW] Custom scalar types. Specify `attributeValueScalarType` for the name of the property's custom type and `additionalHeaderFileName` if you need to bring in an additional header file for compilation. With this, mogenerator supports C-style and [JREnum](https://github.com/rentzsch/JREnum)-style enums. ([Quentin ARNAULT](https://github.com/rentzsch/mogenerator/commit/43eff6a69098747d95417ed4f5f7b5e686504473))