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 protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]