Core Data Mac OS X 基于文档的应用程序中的 NSArrayController 类与实体模式
任何人都可以解释 NSArrayContoller 模式(类/实体}之间的实践差异吗?
我只是在基于文档的 Core Data 桌面应用程序中面临一些调试问题(对我的所有控制器使用实体模式)。
我的数据库结构变得非常复杂,需要如此我花了很多时间来查找错误的绑定(输入错误的键路径等)。
如果我将所有控制器切换到类模式,这会对跟踪绑定错误产生任何影响吗?
Can anyone explain differences in practise between NSArrayContoller modes (Class / Entity}?
I am just facing some debugging issues in my document based Core Data desktop application (using Entity mode for all my controllers).
My database structure became quite complicated and it takes so much time to find wrong bindings (mistyped key-paths, etc..). I have also generated classes for each entity in my data model.
Would it make any difference in tracking binding mistakes if I switched all my controllers to the Class mode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实体用于阵列包含 Core Data 托管对象的阵列控制器。
类适用于数组包含普通(非托管)对象的数组控制器。
因此,不,将保存托管对象的阵列控制器切换到非托管对象模式不会有帮助。
您应该在调试器控制台中得到有关该问题的异常。
Entity is for array controllers whose arrays contain Core Data managed objects.
Class is for array controllers whose arrays contain plain (not managed) objects.
So, no, switching an array controller that holds managed objects over to the unmanaged-object mode will not help.
You should get an exception about that in the Debugger Console.