Annotation of Examples/EnterpriseObjects/Validation/Validation.subproj/KeyValueValidation.h, revision 1.1.1.1

1.1       root        1: // KeyValueValidation
                      2: // An informal protocol for validating changes to EOs before setting the
                      3: // changes takeValuesFromDictionary
                      4: #import <eoaccess/eoaccess.h>
                      5: 
                      6: @interface NSObject (KeyValueValidation)
                      7: - (NSDictionary *)validateValuesInDictionary:(NSDictionary *)values;
                      8:     // should return a set of key / error message pairs or nil if
                      9:     // all the values are acceptable.
                     10:     // The default implementation looks for methods with the signature
                     11:     // (NSString *)validate<KeyName>:value, which should return nil on
                     12:     // success or user presentable error message on error.
                     13: @end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.