Documentation Archive Developer
Search
[an error occurred while processing this directive] PATH  Documentation > WebObjects 4.5 > EOInterface Reference

Table of Contents

EOTextAssociation


Inherits from:
EOAssociation : EODelayedObserver (EOControl) : NSObject
Conforms to:
NSCoding
(EOAssociation)
EOObserving (EODelayedObserver)
NSObject (NSObject)
Declared in:
EOInterface/EOTextAssociation.h




Class Description


An EOTextAssociation object displays a plain or rich text attribute in an NSText object (Application Kit) by binding the text object to a string or NSData attribute. It determines the kind of text received from an object by examining the beginning for signature codes specific to RTF and RTFD. When writing text back to the object, the association examines the configuration of the NSText object to determine the type to use according to the following table:


Multiple Fonts Allows Graphics Type Written to Object
NO NO NSString text
YES NO NSData containing RTF
YES YES NSData containing RTFD

The following tables describe the display objects an EOTextAssociation can be used with, the aspects of an EOTextAssociation, and the object keys it takes.


Usable With
NSText, NSTextView, NSCStringText


Aspects
value A text attribute of the selected object.
editable A boolean attribute of the selected object, which determines whether the text object is editable.


Object Keys Taken
delegate An EOTextAssociation accepts delegate messages related to the editing and validation of text; see the NSText, NSTextView, and NSCStringText class specifications for more information.




Table of Contents