• 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: Keary Suska <email@hidden>
  • Date: Tue, 13 Jul 2010 15:40:57 -0600

On Jul 13, 2010, at 12:02 PM, Amy Gibbs wrote:

> I've read pages and pages on the internet, and looked at the samples, and I've got Hillegass (2nd and 3rd editions) but I'm also a newbie,
>
> I'm trying to create a fairly simple app, and I'm a bit stuck with the to-many relationships.
>
> I've got 2 entities, Product and Kit.
>
> There will be lots of products, and lots of kits. Kits can contain multiple products, and products can be part of multiple kits. In the data modeller they are set up as inverse to-many relationships of each other.
>
> In my interface, I've got a tabbed layout, one for Products, and one for Kits,
>
> I can add new products, and I can add new kits, but I can't work out how to add products to the kits. I only want to be able to add existing products to the kits (so I'll have to add the products first, then add them to the kits).
>
> I my head I'm seeing a popup, but I've no idea how to actually make the connection between the kit and product (or vice versa)
>
> I hope this makes sense, can anyone point me in the right direction?

This is all clearly explained in the Core Data Programming Guide, specifically: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html#//apple_ref/doc/uid/TP40001803-212651

Or, you need to be more specific about what you do not understand.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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

  • Follow-Ups:
    • Re: coredata to-many relationships
      • From: Amy Gibbs <email@hidden>
References: 
 >coredata to-many relationships (From: Amy Gibbs <email@hidden>)

  • Prev by Date: Drag pasteboard owner asked for data upon quitting
  • Next by Date: Re: Compiler bug?
  • Previous by thread: coredata to-many relationships
  • Next by thread: Re: coredata to-many relationships
  • Index(es):
    • Date
    • Thread