Re: [SOLVED] Do CoreData validation methods get called for transient attributes?
Re: [SOLVED] Do CoreData validation methods get called for transient attributes?
- Subject: Re: [SOLVED] Do CoreData validation methods get called for transient attributes?
- From: Dave Fernandes <email@hidden>
- Date: Mon, 12 Nov 2007 21:21:41 -0500
I forgot to check Validates Immediately under the value binding in
IB. But one more question...
On Nov 12, 2007, at 3:38 AM, mmalc crawford wrote:
You are strongly discouraged from modifying the value during
validation.
<http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/Validation.html#//apple_ref/doc/uid/
20002173-169942-CJBHDJGC>
mmalc
I'm a bit confused about this. In the reference above under
"Implementing a Validation Method", outcome #2 is "A new object value
that is valid is created and returned." Does the strong
discouragement of this practice apply only to Core Data? In any case,
is there a more appropriate place to coerce a value?
Dave
_______________________________________________
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