Re: Data not retained in document based core data app with cocoa bindings
Re: Data not retained in document based core data app with cocoa bindings
- Subject: Re: Data not retained in document based core data app with cocoa bindings
- From: Richard Charles <email@hidden>
- Date: Sat, 10 Oct 2015 23:50:38 -0600
> On Oct 10, 2015, at 12:34 PM, Devarshi Kulshreshtha <email@hidden> wrote:
>
> I am sure that I am missing something over here, looking for guidance.
As instructed by Jerry delete the Document from your storyboard.
Courtesy of Apple and Mike Swan bind the array controller parameters managed object context to the view controller with a model key path of
self.view.window.windowController.document.managedObjectContext
http://stackoverflow.com/questions/28184218/what-is-the-new-way-of-binding-an-nsarraycontroller-to-the-managed-object-contex
Save the document as an xml file. Open with TextEdit and verify that the model data has been saved to disk. The data will be identified with something like id="z103".
Unfortunately when you reopen the document the model data does not display in the table view, so there are more issues to be addressed.
--Richard Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden