【发布时间】:2014-03-02 13:33:23
【问题描述】:
在阅读了关于RKManagedObjectStore 的RestKit 文档后,我对createPersistentStoreCoordinator 方法感到困惑,因为该方法的描述中有下一个警告:
**Warning:** Creating the persistent store coordinator will
render the managed object model immutable. Attempts to
use functionality that requires a mutable managed object model
after the persistent store coordinator has been created
will raise an application error.
我不明白immutable 托管对象模型是什么意思?我在官方Core Data 文档和互联网上都找不到有关此主题的任何信息。有人可以解释一下mutable 和immutable 托管对象模型之间的区别吗?为什么创建持久存储协调器会呈现不可变的托管对象模型?什么功能需要可变的托管对象模型?
提前致谢。
【问题讨论】:
标签: ios objective-c cocoa-touch core-data restkit