Core Data, NSArraycontrollers and secondary to-many relationships.
Core Data, NSArraycontrollers and secondary to-many relationships.
- Subject: Core Data, NSArraycontrollers and secondary to-many relationships.
- From: Sumanth Peddamatham <email@hidden>
- Date: Sat, 18 Jul 2009 12:59:51 -0400
Hey folks,
I'm working on a little project: http://recon-mac.googlecode.com , a
frontend for Nmap. My Core Data model looks like this:
http://recon-mac.googlecode.com/files/recon_datamodel.png
I'd like to use a NSTableview to display a list of unique ports in a
selected session. As you can see, the relationship between Session is
a tiered two-many relationship.
I have NSArrayControllers bound to the MOC for Session, Host, and
Port. The relationships are also configured correctly. ie. Other,
simpler, view work great.
I've spent a few days playing with NSArrayControllers, fiddling with
Content Array, Content Set, Content Object settings; tried
understanding @distinctUnionOfSets and @distinctUnionOfArrays; but
I've hit a wall.
So... how do I do it. I know the solution must be embarrassingly
simple, but it's eluded me.
Best,
Sumanth P.
http://bafoontecha.com
_______________________________________________
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