On Jun 13, 2017, at 19:10 , Glen Huang <hey...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com