• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: coredata to-many relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >coredata to-many relationships (From: Amy Gibbs <email@hidden>)
 >Re: coredata to-many relationships (From: Keary Suska <email@hidden>)
 >Re: coredata to-many relationships (From: Amy Gibbs <email@hidden>)

  • Prev by Date: Re: Deploying to an iPad
  • Next by Date: Re: Adding an image to a project
  • Previous by thread: Re: coredata to-many relationships
  • Next by thread: Self sign certificate creation
  • Index(es):
    • Date
    • Thread