Re: CoreData - Multiple Model Files?
Re: CoreData - Multiple Model Files?
- Subject: Re: CoreData - Multiple Model Files?
- From: "Barry Wark" <email@hidden>
- Date: Wed, 12 Nov 2008 21:38:14 -0800
If you want to treat multiple model files as if they were one (ie with
relationships spanning the entities in both files), you're going to
have to do a lot of extra work. Check out this post from Scott Hanson
:http://stackoverflow.com/questions/130316/cross-model-relationships-in-nsmanagedobjectmodel-from-merged-models
.
Basically you can merge the models in code using hints you leave
yourself in the entities' userInfo dictionaries before building the
rest of the Core Data stack.
I'd agree with Sean, however. It's probably easier to deal with the
pain early in the project rather than add the complexity of the
"solution".
-Barry
On Wed, Nov 12, 2008 at 11:27 AM, Todd Blanchard <email@hidden> wrote:
> I'm working with another developer on an app with a rather elaborate core
> data schema. We are each working on different parts of the schema. Having
> one model just isn't scaling - version control does not like model files -
> they constantly get broken and are a nightmare to merge.
>
> Is it possible to have multiple model files that share some entities? Is
> there code to stitch them together at compile time into one compiled model
> file?
>
> This is a serious scalability issue for us. We might as well not have the
> thing in version control at all since we have to agree who owns the file at
> any one time to keep from messing it up.
>
>
> _______________________________________________
>
> 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
>
_______________________________________________
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