Core Data nested managed object contexts and frequent deadlocks / freezes

前端 未结 7 1032
囚心锁ツ
囚心锁ツ 2020-12-04 14:31

I have a problem that is almost identical to the problem described by this person here, but it hasn\'t get answered:

http://www.cocoabuilder.com/arc

7条回答
  •  庸人自扰
    2020-12-04 15:14

    It happens to me because the parents are set up with NSMainQueueConcurencyType

    To solve that I make the managedobjectcontext for mainQueue to be a child. I called reset everytime I want to load stuff to ensure that data on mainQueue is the same with the parent. It often isn't.

提交回复
热议问题