• 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: Core-Data & validate<key>:error:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core-Data & validate<key>:error:


  • Subject: Re: Core-Data & validate<key>:error:
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 6 Sep 2005 17:27:06 -0700


On Sep 6, 2005, at 10:27 AM, Kaspar Fischer wrote:

I implemented validate<key>:error: for an attribute of
a Core-Data entity.  It works in the sense that when
I change the attribute's value and save the document,
validation takes place.
However, when the entity is created (with an illegal
value, say) then *no* validation takes place when I
save the document.  Is this behaviour intentional,
that is, are newly created entities not subject to
validation?

Validation is by default performed in all these situations. Have you overridden, say, validateForInsert:, and not invoked the superclass's implementation?


<http://developer.apple.com/documentation/Cocoa/Reference/ CoreData_ObjC/Classes/NSManagedObject.html#//apple_ref/doc/uid/ TP30001171-BBCGEAIF>

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Core-Data & validate<key>:error:
      • From: Kaspar Fischer <email@hidden>
    • Re: Core-Data & validate<key>:error:
      • From: Kaspar Fischer <email@hidden>
References: 
 >Core-Data & validate<key>:error: (From: Kaspar Fischer <email@hidden>)

  • Prev by Date: Re: NSValidationNumberTooSmallError with incomplete error message
  • Next by Date: Re: Core Data : calling validation in awakeFromInsert problem ?
  • Previous by thread: Core-Data & validate<key>:error:
  • Next by thread: Re: Core-Data & validate<key>:error:
  • Index(es):
    • Date
    • Thread