Re: coredata to-many relationships
Re: coredata to-many relationships
- Subject: Re: coredata to-many relationships
- From: Jerry Krinock <email@hidden>
- Date: Wed, 14 Jul 2010 15:59:38 -0700
On 2010 Jul 14, at 01:43, Amy Gibbs wrote:
> I've got a kit Items array controller, that I've connected the add button to, but it's adding a new kit, rather than a new kit <-> product relationship. Maybe I've not got the array controller set up properly?
I believe you mean that it's *only* adding a kit, and is not adding a relationship to a product for this kit. Last week, we discussed how Apple's DepartmentAndEmployees sample does this. Yes, there is magic is in the array controller:
http://www.cocoabuilder.com/archive/cocoa/290372-another-basic-coredata-question.html#290399
However, I'm not sure if this simple approach will work for you, because you have many products. How is it going to know which product(s) to relate the new kit to? Likely, you'll need to set up the relationship in code, using one of the other methods discussed in that thread.
_______________________________________________
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