Archive for April 17, 2013

Wednesday, April 17, 2013

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 or xcdatamodeld 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.