• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to validate Core Data attributes ? (example in official doc doesn't work)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to validate Core Data attributes ? (example in official doc doesn't work)
      • From: Glen Huang <email@hidden>
References: 
 >How to validate Core Data attributes ? (example in official doc doesn't work) (From: Glen Huang <email@hidden>)

  • Prev by Date: How to validate Core Data attributes ? (example in official doc doesn't work)
  • Next by Date: Re: How to validate Core Data attributes ? (example in official doc doesn't work)
  • Previous by thread: How to validate Core Data attributes ? (example in official doc doesn't work)
  • Next by thread: Re: How to validate Core Data attributes ? (example in official doc doesn't work)
  • Index(es):
    • Date
    • Thread