Re: Uniquing data in Core Data
Re: Uniquing data in Core Data
- Subject: Re: Uniquing data in Core Data
- From: Jerry Krinock <email@hidden>
- Date: Wed, 14 Aug 2013 21:14:42 -0700
On 2013 Aug 14, at 20:46, Keary Suska <email@hidden> wrote:
> A cleaner approach, IMHO, is to have a holder entity whose sole attribute is a to-one relationship to your other entity. Think of it as a singleton that always exist and maintains the particular managed object.
Indeed Keary's idea is much better, and furthermore you may well already such an existing "singleton" entity nearby in that data model, which would be the logical place for this to-one relationship. Just add this relationship to that existing "singleton" entity.
_______________________________________________
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