Re: How to validate Core Data attributes ? (example in official doc doesn't work)
Re: How to validate Core Data attributes ? (example in official doc doesn't work)
- Subject: Re: How to validate Core Data attributes ? (example in official doc doesn't work)
- From: Quincey Morris <email@hidden>
- Date: Tue, 13 Jun 2017 19:36:00 -0700
On Jun 13, 2017, at 19:10 , Glen Huang <email@hidden> wrote:
>
> In the Core Data Xcode editor, I enabled optional for this attribute, but I
> expect this method will prevent the object from being saved when the it's
> location isn't set
I don’t understand this. If you made the “location” attribute optional, I would
expect it to be validated only if non-nil. If the location is never set, it’s
nil by default, so why are you expecting validation to occur?
_______________________________________________
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