home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / Validation / Validation.subproj / KeyValueValidation.h < prev    next >
Encoding:
Text File  |  1995-02-17  |  582 b   |  14 lines

  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
  14.