“Core Data could not fulfill a fault” for objects that were not deleted
2015-06-30 20:53
441 查看
3down voteaccepted | It is possible that an object that was not "properly" saved to cause this behaviour. One way to do that is: Insert an object in a child context obtain a permanent ID for that object save to the parent context obtain the object in the parent context refresh the object in the parent context access the object in the parent context (fulfil a fault for that object) Edit: Another way to reach this state in a single context architecture is: Insert an object obtain a permanent id for the object refresh the object try and access the object (trigger a fault on the object) the refresh might be a result of a fetched results controller paging through the data and not necessarily something "visible" in your application. In addition, there is a CoreData "bug" that not always allows you to catch this exception in a parent-child context architecture, but you can try ... However, if this is the scenario you encounter, this is not a desired behaviour for your application. you are loosing the new data added to the store. |
4000
-deleted
相关文章推荐
- Objective-C 内存管理之 _ARC
- C#取硬盘、CPU、主板、网卡的序号 ManagementObjectSearcher
- block的实现原理
- [Objective-C]SEL类型、@selector选择器
- 面向对象 object 内部类
- [object-c]格式化时间
- JSONObject与JSONArray的使用
- objective-c类初始化
- Coroutine couldn't be started because the the game object 'GameController' is inactive!
- Understanding the Objective-C Runtime
- Github上优秀的Objective-C项目简介
- php分析MSSQL返回的时间位object,怎样输出时间?
- Could not reserve enough space for object heap 问题解决
- Github上优秀的Objective-C项目简介
- org.tinygroup.context2object-参数对象构建
- JavaSE实战——API(上) Eclipse使用、Object、Scanner、String、StringBuffer、StringBuilder、Integer、模拟用户登录案例
- 15 面向对象 抽象类 内部类 Object类
- Objective-C程序设计第10章---More on Variable and Data Types
- Thread: staticMetaObject
- 【Objective-C】-空指针和野指针