momdec: Core Data Model Decompiler
Tom Harrington introduces momdec:
a command-line tool for Mac OS X that takes a compiled Core Data model and decompiles it to produce an equivalent
xcdatamodel
orxcdatamodeld
suitable for use in Xcode. The resulting model file can also be used with mogenerator to produce source code files for Core Data entities which have custom subclasses.
Sounds good, although in my view this functionality should have been built into Xcode.
Thinking about the other direction, it’s unfortunate that Core Data is so reliant on compiled model files that can only (officially) be generated from its undocumented model editor format. Right now there are APIs to construct models in code, but in various places you can’t actually tell the framework to use said models.
1 Comment RSS · Twitter
[...] Harrington introduces momcom (the counterpart to momdec): After writing momdec I realized I could probably compile models as well as decompile them. So, I [...]