开发者

Why does previously saved data not appear in opened document of Core Data app?

开发者 https://www.devze.com 2023-04-09 20:41 出处:网络
I have created the Core Data app that is outlined in this tutorial by Apple using XCode 4. All works fine however when I save the document and reopen it the document window is empty and no data is sho

I have created the Core Data app that is outlined in this tutorial by Apple using XCode 4. All works fine however when I save the document and reopen it the document window is empty and no data is shown.

When I check the data file, I can actually see the saved data in the file (only for XML format as other formats are unreadable). This problem rises for all of the supported save formats (XML, binary and SQLLITE).

There are no开发者_运维知识库 stacktraces in the debugger. All looks fine...


Found it. You need to check the "Prepares content" checkbox on the controller (attributes inspector pane of the Array Controller) otherwise data is not shown.

0

精彩评论

暂无评论...
验证码 换一张
取 消