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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to