Correct way of updating an NSTableView in a Core Data app

邮差的信 提交于 2019-12-01 11:09:23

Think I've found it - I added the following to the end of the threaded processing and executed it on the main thread:

[self.managedObjectContext reset];
[myArrayController fetch:self];

Resetting the MOC apparently clears it so forcing the controller to redraw the cells. The -fetch appears to be necessary otherwise the table goes blank...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!