Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 273
Harvey Avatar asked Dec 26 '22 21:12

Harvey


1 Answers

A .mom is often (always?) just a renamed binary property list (.plist) file. Rename it back to .plist and you can easily view its contents with Xcode (or even QuickLook). It may not be the best way to display the data, but you can quickly get an idea of what’s inside.

like image 50
max Avatar answered May 21 '23 21:05

max