How to open an existing .mom file, or is there any way to see the structure of an existing .mom file

Harvey picture Harvey · Aug 27, 2013 · Viewed 7.8k times · Source

I've downloaded a copy of iOS source code and there is a .mom file in the bundle. I just know it is a "product" of NSManagedObjectModel. I wonder is there any way that I can explore the entities in the file, or is there any code snippet to parse its structure. Thank you!

Answer

Tom Harrington picture Tom Harrington · Aug 27, 2013

Use the managed object model decompiler [full disclosure: I wrote it] to convert the .mom back into a .xcdatamodel. Then open the result in Xcode.