Re: Core Data or not
Re: Core Data or not
- Subject: Re: Core Data or not
- From: Trygve Inda <email@hidden>
- Date: Fri, 05 Aug 2016 22:46:56 -0700
- Thread-topic: Core Data or not
> Little different perspective, Core Data tends to work drop dead easy for
> simple stuff. Small data set with simple functionality should work straight
> out of the box easy.
>
> And there is nothing wrong with creating a manual array of managed objects
> from a Core Data result set.
Currently I have an NSTableView tied to an NSArrayController. I manually
populate the array controller as needed with items from my master array.
With Core Data it seems the NSArrayController would be tied to the Managed
Context and while I could apply a predicate to filter the array controller,
manually populating it would be slow.
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?
_______________________________________________
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