Re: Core-Data & validate<key>:error:
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