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

  1. // EOTextAssociation.h
  2. // Enterprise Objects Framework
  3. // Copyright (c)1993, NeXT Software, Inc. All rights reserved.
  4. //
  5. // The EOTextAssociation binds a NSText object (including NSCStringText and
  6. // NSTextView) to a property of an EO containing text, RTF, RTFD.
  7. //
  8. // Bindings:
  9. //     value:          text property of EO to be displayed in text view
  10. //     editable:       BOOL property of EO indicating whether the user should be allowed
  11. //                     to modify the text.
  12. //
  13. // Support for plain text, RTF, and RTFD:
  14. // The EOTextAssociation can be bound to either plain text (NSString), RTF (encoded in
  15. // an NSData) or RTFD (also NSData).  The type is determined by examining signature bytes
  16. // in the beginning of the data.
  17. // When the user modifies the text, the type to write back to the EO is determined by
  18. // the settings in the text view.
  19. //   Multiple Fonts        Allows Graphics      Type in EO
  20. //   NO                    NO                   NSString text
  21. //   YES                   NO                   NSData containing RTF
  22. //   YES                   YES                  NSData containing RTFD
  23. //
  24. // Note that in EOF 1x, RTF was encoded in an NSString.  EOF 2x uses an NSData
  25. // for consistency with the NSText OpenStep API.
  26.  
  27. #import <EOInterface/EOAssociation.h>
  28.  
  29.  
  30. @interface EOTextAssociation:EOAssociation
  31. {
  32.     id _lastValue;
  33.     unsigned _didChange:1;
  34. }
  35.  
  36. @end
  37.