Do CoreData validation methods get called for transient attributes?
Do CoreData validation methods get called for transient attributes?
- Subject: Do CoreData validation methods get called for transient attributes?
- From: Dave Fernandes <email@hidden>
- Date: Mon, 12 Nov 2007 00:06:13 -0500
Mine doesn't seem to be called ever. Here is the method for the
NSManagedObject subclass that has a transient attribute "duration".
Is this the correct signature?
Dave
// Validator for duration attribute.
- (BOOL)validateDuration:(id*)ioValue error:(NSError**)error
{
if ([*ioValue doubleValue] > 2.)
{
*ioValue = [NSNumber numberWithDouble:2.];
}
return YES;
}
_______________________________________________
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