• 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
Do CoreData validation methods get called for transient attributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Do CoreData validation methods get called for transient attributes?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Subclassing in Interface Builder 3
  • Next by Date: Re: Crash Reporter for Cocoa Application
  • Previous by thread: Re: Subclassing in Interface Builder 3 - solution to Scott's problem
  • Next by thread: Re: Do CoreData validation methods get called for transient attributes?
  • Index(es):
    • Date
    • Thread