Re: CoreData, inheritance and plug-ins
Re: CoreData, inheritance and plug-ins
- Subject: Re: CoreData, inheritance and plug-ins
- From: Dave Hayden <email@hidden>
- Date: Thu, 1 Dec 2005 18:54:36 -0800
On Nov 10, 2005, at 3:55 PM, Miguel Sanchez wrote:
two things:
+ the original post might have been asking if the
modelByMergingModels would automatically do the parent-child hookup
of the entities. If this was the question, the answer is no. You
won't be able to declare the parent of a class within the modeling
tool if that parent isn't in the same model you're editing. You'll
have to figure out a way of encoding this parent dependency, either
by creating a dummy parent class that get swiped for the real one,
or putting the name of the parent in the user info of the entity.
In any case, you'll need to have code that tweaks your child model by
- calling modelByMergingModels
- and then setting the parent-child relationships in the resulting
model
Hey there, just a late reply to this as I'm digging through the
archives. Setting parents across models with -[NSEntityDescription
setSubentities:] doesn't seem to work for me at all with a SQLite
store--it goes into an endless recursion trying to create the database.
Is there example code anywhere that shows this working?
Thanks,
-Dave
Panic, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden