• 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
Re: Using NSFetchedResultsController with many-to-many relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSFetchedResultsController with many-to-many relationship


  • Subject: Re: Using NSFetchedResultsController with many-to-many relationship
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 10 Mar 2018 14:03:22 -0800

On Mar 10, 2018, at 13:06 , Steve Christensen <email@hidden> wrote:
>
> Don't complicate your life by managing multiple NSFetchedResultsControllers.
> Just create a single one that returns Club entities.

The other valid approach, I think, is to “join” the two entities. That is,
introduce a third entity, say “Membership” which represents a single Person
belonging to a single Club. Person then becomes one-to-many for Membership, and
Club becomes one-to-many for Membership, and there is no many-to-many
relationship any more.

There is still complication in doing the kind of enumerations needed for a
table view, but life is generally easier without many-to-many relationships.
_______________________________________________

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: Using NSFetchedResultsController with many-to-many relationship
      • From: Glen Huang <email@hidden>
References: 
 >Using NSFetchedResultsController with many-to-many relationship (From: Glen Huang <email@hidden>)
 >Re: Using NSFetchedResultsController with many-to-many relationship (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: Using NSFetchedResultsController with many-to-many relationship
  • Next by Date: Re: Using NSFetchedResultsController with many-to-many relationship
  • Previous by thread: Re: Using NSFetchedResultsController with many-to-many relationship
  • Next by thread: Re: Using NSFetchedResultsController with many-to-many relationship
  • Index(es):
    • Date
    • Thread