Core Data, OutlineView, TreeController
Core Data, OutlineView, TreeController
- Subject: Core Data, OutlineView, TreeController
- From: Raimond Hettrich <email@hidden>
- Date: Mon, 23 May 2016 20:16:07 +0200
Hallo all,
I´m new in objective-c coding and I have the following problem with the constellation coreData-treeController-outlineView.
I’ve got an view based outlineView which shows an hierarchical tree. I can add a new row with the default values of my entities attributes. I can add new children's depended of which row is selected and I can delete the selected row.
This shows that the bindings coreData-entity -> treeController-managedObjectContext -> tableViewColumn-arrangedObjects -> tableViewCell-objectValue.name are correct an functional.
Also I can use the saveAction, which was automatically implemented by creating the new coreDataProject, but if I close and reopen the app my outlineView shows nothing.
This is what the following logs return.
BOOL savedOK = [[self managedObjectContext] save:&error]; -> 1
NSLog(@"has Changes %hhd", _managedObjectContext.hasChanges); -> 0
Is there a need to add code to the saveAction? I know that in the constallation coreData-arrayController-tableView is no need to add extra code. Since weeks I’m looking for an answer and I can’t find it.
Have anyone an idea, what’s going wrong?
Many thanks,
Raycord
_______________________________________________
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