• 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: Minutiae of NSValidation in ERXGenericRecord and ERXPartialGenericRecord
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minutiae of NSValidation in ERXGenericRecord and ERXPartialGenericRecord


  • Subject: Re: Minutiae of NSValidation in ERXGenericRecord and ERXPartialGenericRecord
  • From: Paul Hoadley <email@hidden>
  • Date: Mon, 01 Aug 2016 10:39:38 +0930

Two tiny corrections:

On 1 Aug 2016, at 10:32 AM, Paul Hoadley <email@hidden> wrote:

In any case, the alternative is “last modification wins”, which is the bug Johann was correcting—_validateValueForKey() was previously modifying the original ‘value’ and being allowed to return that, hence trumping any other modifications.

Actually, that’s the bug the second commit fixed, the original bug was that the result of _validateValueForKey() was being assigned to ‘value’ and that was never referenced again, so partial entity validation was being ignored.

I just wondered whether it was worth sanity checking the idea here first, because Johann has pointed out that we probably need to modify _validateValueForKey(Object, String) to do the same thing, as currently that method is “last modification wins”:

I forgot to qualify that with a class name: it’s ERXPartialGenericRecord._validateValueForKey(Object, String).


-- 
Paul Hoadley
http://logicsquad.net/



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

This email sent to email@hidden

References: 
 >Minutiae of NSValidation in ERXGenericRecord and ERXPartialGenericRecord (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Minutiae of NSValidation in ERXGenericRecord and ERXPartialGenericRecord
  • Previous by thread: Minutiae of NSValidation in ERXGenericRecord and ERXPartialGenericRecord
  • Index(es):
    • Date
    • Thread