Re: How does Core Data validate transient attributes?
Re: How does Core Data validate transient attributes?
- Subject: Re: How does Core Data validate transient attributes?
- From: Jerry Krinock <email@hidden>
- Date: Sun, 30 Mar 2014 14:14:08 -0700
On 2014 Mar 30, at 13:03, Rick Mann <email@hidden> wrote:
> For some reason, Core Data thinks they're nil, and so I was asking how it decides that.
In your original message, you refer to these non-optional properties being “backed by” optional scalars. To answer your question, I think one would need to know exactly what “backed by” means. I don’t.
The issue you’re seeing is a example of how Core Data's validation is problematic. My advice is to go through your data model and make *all* properties optional. If you need a property to be validated, do it in your own accessor. Another advantage of this approach is that you control what happens when validation fails. Unless your users appreciate those lovely “Vaidation Failed” modal alerts :))
_______________________________________________
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