• 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: Glen Huang <email@hidden>
  • Date: Sun, 11 Mar 2018 10:48:34 +0800

Works like a charm. Thanks!

> On 11 Mar 2018, at 6:03 AM, Quincey Morris
> <email@hidden> wrote:
>
> 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

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>)
 >Re: Using NSFetchedResultsController with many-to-many relationship (From: Quincey Morris <email@hidden>)

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