Core Data code generation
Clone or download
rentzsch Merge pull request #378 from q231950/master
[NEW] To better interoperate with Xcode's newish built-in code generation, mogenerator will now ignore any entity which has a userInfo that has an entry with an `mogenerator.ignore` key. ([Martin Kim Dung-Pham](#378))
Latest commit 48fc1ff Oct 2, 2018
Failed to load latest commit information.
.github Added pull request & issue templates. Mar 27, 2016
MiscMerge Don’t check for failure by looking at the NSError Mar 22, 2016
categories Replaced RegexKitLite with NSRegularExpression. Aug 25, 2015
contributed templates Reverted PonsoTest to version on rentzsch/master Nov 30, 2011
ddcli instancetype support. Aug 24, 2015
installer Bump version to 1.29, copyright to 2015. Aug 20, 2015
mogenerator.xcodeproj Remove user-specific command line args Aug 5, 2018
momcom Support "Custom Class" for Transformable attributes: Aug 5, 2018
ponso instancetype support. Aug 24, 2015
templates Add entity level “additionalImports”, a comma-separated list of modul… Aug 9, 2018
test Update tests and cleanup pull request Sep 28, 2018
.gitignore check-in `mogenerator` shared scheme Mar 5, 2016
.travis.yml Update travis config to specify Xcode 9 Sep 22, 2017 [TYPO] Create-an-issue link Apr 6, 2016
LICENSE Add MIT LICENSE file to make it clear templates are under the same li… Jan 3, 2014 Updated version history in README Aug 3, 2018 [DOC] Move version history into its own file. Dec 19, 2016 Update to use DERIVED_FILE_DIR instea… Jul 24, 2015
mogenerator.h Move `isIgnored` into its own category Sep 26, 2018
mogenerator.m Update tests and cleanup pull request Sep 28, 2018
mogenerator_Prefix.pch Enabled Objective-C modules. Aug 24, 2015


Visit the project's pretty homepage.

Here's mogenerator's elevator pitch:

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, subclasses _MyEntity, won't ever be overwritten and is a great place to put your custom logic.

Want more detail? John Blanco has authored a detailed writeup about mogenerator.

Using mogenerator

Senseful wrote up a nice summary of mogenerator's command-line options.

Version History

v1.32: Wed Jun 20 2018

v1.31: Mon Oct 3 2016 download

Further history is listed in the Version History file.