I have made some changes to my Core Data model, and the we are handling the migration as described here: Lightweight Migration.
That’s not a problem. However, I want to make a couple of other updates to my data that are conditional on the current model version. How can I get the name of the current model version? I expected to see something like:
[[NSBundle mainBundle] currentDataModelName]
but I can’t seem to find it. Can anyone help?
You can ask your
NSManagedObjectModelby sendingversionIdentifiersto the receiver.The docu is here