• 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
Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView


  • Subject: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
  • From: "Jon C. Munson II" <email@hidden>
  • Date: Wed, 25 Mar 2009 09:47:25 -0400
  • Organization: JTA Enterprises LLC

Namaste!

For the sake of this discussion, here's a sample entity layout:

Two entities, one named A, the other named B.  A and B have a reflexive
relationship with each other (that would be a many-to-many type).  The
backend is a SQLite store (not that it should matter).

I'd like my interface to be based from entity A's point of view, using an
NSTableView to select (via popup) the entity B's that are related
(populating the popup with values is not at issue). 

My issue comes in with how to set the bindings to support the relationship.


I've taken a look at the iClass example (which did give me some basics from
which to work) and also the Core Recipes example - neither implement the
interface in the manner I'd like.

I also did a lot of Googling on the terms "cocoa core data reflexive
bindings many-to-many" (and a couple others) in attempts to try and find a
similar solution.

I did find some nice discussions (rather old though) from mmalc (whose
examples I also perused), however they weren't oriented with my intended
solution.

So, my question is therefore how do I configure the bindings to support the
relationship if it is even possible to use bindings solely?  If it isn't
possible to use bindings, is there a discrete example somewhere that someone
could point me to that shows how to set this up?

Many thanks in advance?

Peace, Love, and Light,

/s/ Jon C. Munson II



_______________________________________________

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: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
      • From: Benjamin Stiglitz <email@hidden>
    • Re: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: signal(SIGUSR2, SIG_IGN) not respected by Xcode/GDB?
  • Next by Date: Re: NIB Init method for window subclasses
  • Previous by thread: Re: Overriding -dealloc on any object
  • Next by thread: Re: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
  • Index(es):
    • Date
    • Thread