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: Devarshi Kulshreshtha <email@hidden>
- Date: Sun, 11 Oct 2015 14:11:44 +0530
Thank you Richard, Jerry.
I tried this binding:
self.view.window.windowController.document.managedObjectContext
and verified by opening the saved xml document in TextEdit, it showed saved
info :) but when I am trying to open it using the created app,
'DocumentSample' in my case, it is not showing any data in opened window.
Looking for more clues :-|
On Sun, Oct 11, 2015 at 11:20 AM, Richard Charles <email@hidden>
wrote:
>
> > 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
>
>
--
Thanks,
Devarshi
_______________________________________________
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