Load a previous model version

前端 未结 5 629
小蘑菇
小蘑菇 2021-02-12 19:31

I am loading a NSManagedObjectModel model with the initWithContentsOfURL: constructor like this:

NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@\"MyDoc         


        
5条回答
  •  北海茫月
    2021-02-12 19:56

    No, it is not foreseen that this is possible. I deduce that from the NSManagedObjectModel documentation, where it says discussing the property versionIdentifiers:

    This value is meant to be used as a debugging hint to help you determine the models that were combined to create a merged model.

    So it does not seem you are supposed to use previous model versions for your program logic.

提交回复
热议问题