home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / EOModelExtensions.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  1.1 KB  |  31 lines

  1. // EOModelExtensions.h
  2. // Copyright (c) 1996, NeXT Software, Inc. All rights reserved. 
  3.  
  4. #import <EOInterface/EOInterface.h>
  5. #import <EOAccess/EOAccess.h>
  6.  
  7. @interface EOEntity (EOModelExtensions)
  8. - (NSArray *)classAttributes;
  9. - (NSArray *)classScalarAttributes;
  10. - (NSArray *)classNonScalarAttributes;
  11. - (NSArray *)classToManyRelationships;
  12. - (NSArray *)classToOneRelationships;
  13. - (NSArray *)referencedClasses;
  14.     // non-generic record relationship destination classNames
  15. - (NSString *)referenceClassName;
  16.     // Returns "id" if className == "EOGenericRecord" or "<className> *"
  17.     // otherwise
  18. @end
  19.  
  20. @interface EOAttribute (EOModelExtensions)
  21. - (NSString *)cScalarTypeString;
  22. @end
  23.  
  24. @interface NSMutableAttributedString (_EOModelerErrorConstruction)
  25. + (NSMutableAttributedString *)mutableAttributedStringWithBoldSubstitutionsWithFormat:(NSString *)format, ...;
  26.     // This method doesn't handle most format strings. Actually, it expects
  27.     // every substitution to be "%@" and every variable to be an NSString.
  28.     // Kind of limited, but it works well for generating errors of consistency checking.
  29. @end
  30.  
  31.