Re: Core Data or not
Re: Core Data or not
- Subject: Re: Core Data or not
- From: Andy Lee <email@hidden>
- Date: Sat, 06 Aug 2016 10:04:01 -0400
(Apologies to those getting this twice -- I sent from the wrong account the first time.)
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
_______________________________________________
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