Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Many-To-Many Relationship Interface in Core Data



Hi,

I am starting to experiment with using Core Data and Cocoa for application development on Mac OS X. I have limited experience with this framework, but have worked with a number of other programming environments (I have a masters' degree in Computer Science), though I'm hoping the answer to this proves somewhat simple.

I have a pair of entities set up in a Core Data model (among others, but these are the two of interest at the moment), and I have one-to- many relationships in both directions (set to inverse), so that they act as a many-to-many relationship.

Let's call the entities A and B, with the relationship in A called "b" and the relationship in B called "a".

I am trying to set up the interface using Interface Builder.

Right now, I have an NSTable for A, showing all of its attributes (except relationships). I have add/remove buttons, and that is all working.

I have another tab in the window with an NSTable set up for B, and its two attributes.

What I want to do (ideally) is add a new NSTable on the same tab as the one for A, which will list all of the "rows" from B, with checkboxes next to them, such that rows in B related to the selected row from the table for A will be checked, and they will be unchecked otherwise (with the checkboxes clickable to change the relationships).

The ultimate goal is to provide a simple interface for relating members of A to members of B, where some row from A can have multiple rows from B related to it and vice versa.

Does anyone know of an example somewhere that I could study on how to do this?

Even better, could someone give me at least a sketchy outline with the steps to set this up (or some similarly functional interface)?


Thank you!




_________________________________________________________________ Need personalized email and website? Look no further. It's easy with Doteasy $0 Web Hosting! Learn more at www.doteasy.com _______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.