• 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
Core Data, NSArraycontrollers and secondary to-many relationships.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Best approach for selective spell-checking...
  • Next by Date: Re: NSPasteboard and data types
  • Previous by thread: Re: Best approach for selective spell-checking...
  • Next by thread: Post method - NSMutableURLRequest
  • Index(es):
    • Date
    • Thread