• 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: Core Data or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data or not


  • Subject: Re: Core Data or not
  • From: Trygve Inda <email@hidden>
  • Date: Sat, 06 Aug 2016 09:13:31 -0700
  • Thread-topic: Core Data or not

> On Aug 6, 2016, at 1:46 AM, Trygve Inda <email@hidden> wrote:
>> For example, I would need to add items with ID# 204, 765, 983, 124, and 458
>> to the array. This seems like with Core Data it would be 5 different
>> fetches. Or is there some efficient way to fetch these 5 items in one
>> request?
>
> You could add an entity to your data model that represents the custom
> collection.  It would have an attribute that is a one-to-many relationship to
> InterestingObject.  If you only have one of those manually-constructed tables,
> your data store would only contain one instance of this entity.  That's
> perfectly okay.
>
> --Andy
>
>

I can't do that at run time though. I need the user to be able to build
custom collections (like a custom iTunes playlist) that is a subset of the
full collection but not by any simple predicate criteria.



_______________________________________________

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: Core Data or not
      • From: Andy Lee <email@hidden>
    • Re: Core Data or not
      • From: Ryan Dignard <email@hidden>
  • Prev by Date: Re: Core Data or not
  • Next by Date: Re: Core Data or not
  • Previous by thread: Re: Core Data or not
  • Next by thread: Re: Core Data or not
  • Index(es):
    • Date
    • Thread