Core Data, abstract Entity problem
Core Data, abstract Entity problem
- Subject: Core Data, abstract Entity problem
- From: Alain Schartz <email@hidden>
- Date: Tue, 24 Jun 2008 06:44:19 -0700
Dear List.
I could need some help with a Core Data related problem I am experiencing, and I am not entirely sure I understand everything Cocoa does behind my back. In more detail :
I created a Core Data document based project from scratch. The Core Data model consists of an abstract TreeNode entity (containing a displayText attribute of type string with a default value of "New TreeNode", simply to have something to display) and of a TreeGroup entity (with parent set to TreeNode). It may be important to note that I did not change anything else, the entities' custom classes were left at NSManagedObject.
In Interface Builder, I dragged two "Core Data Entity" library objects on my window - one for the TreeNode entity, one for the TreeGroup entity. Again, I did not change anything except for choosing a Master/Detail view and specifying the addition of Add/Remove buttons.
Ok, what I expect to see when I run this and click the "Add TreeGroup" button is a TreeGroup object appearing in the TreeGroup table view (this works all right) and SIMULTANOUSLY a TreeNode "object" (I don't know if this is supposed to be an object since the Entity is abstract) in the TreeNode table view. The problem is, the TreeNode object sometimes appears as soon as I press the add button, sometimes I have to enter a view with the mousepointer for it to appear. No need to say that this is very irritating.
This is driving me nuts, as you can see there cannot be any code interfering simply because there is none. So all that's left is a misconception on my part, and I was hoping one of you guys could point me in the right direction on this one.
Much obliged,
Alain
P.S. This is actually a bounce of my "Core Data / Bindings problem: context not notified of add: ?" thread I posted on 6/18; Quincy Morris suggested that I reformulate my question as it was not very clear. Sorry for pestering you guys...
_______________________________________________
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