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: Richard Charles <email@hidden>
- Date: Sun, 30 Mar 2014 06:27:27 -0600
Perhaps setNilValueForKey: from the NSKeyValueCoding protocol maybe useful. This method is called on modeled properties that are scalars or structures. Perhaps you need to explicitly set these values in awakeFromInsert and awakeFromFetch.
Richard
On Mar 30, 2014, at 3:54 AM, Rick Mann <email@hidden> wrote:
> I have custom CGRect and CGPoint attributes that are not optional. I'm getting validation errors that they aren't set. I back them with four and two doubles, respectively, which ARE optional.
>
> How does Core Data decide that a custom, transient, undefined attribute is or is not set?
_______________________________________________
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