How to get the path to the MOMD file in the master data

Hey guys i saw this question and used

self.managedObjectContent= [NSManagedObjectModel mergedModelFromBundles:nil]; 

in my code, however, I would like to be able to print the file path via NSLog for the console with the full path of the momd file. The problem is that I don’t know how to go to extracting the path to the MOMD resource using lens c, when I try to register managedObjectContent to complete it, printing of very long secret data that I don’t even need is completed. So, how can I get only the path to the momd file? Sample code please! Thanks in advance.

+1
ios path core-data nsmanagedobjectcontext
source share
1 answer

I solved the problem a little back by looking at what files were in my resource folder, and realizing that they were .mom files, not .momd files. So finding a resource with a .mom file extension solved my problem.

+2
source share

All Articles