Documentation Archive Developer
Search
PATH  WebObjects 4.0 Documentation > EOInterface Reference



EOTextAssociation

Inherits From:
EOAssociation : EODelayedObserver (EOControl) : NSObject

Conforms To: NSCoding (EOAssociation)
EOObserving (EODelayedObserver)
NSObject (NSObject)

Declared in: EOInterface/EOTextAssociation.h


Class Description

In a Yellow Box application, 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

In a Java Client application, an EOTextAssociation object displays a plain text attribute in an EOTextField, EOTextArea, or EOFormCell by binding the text object to a string. Text is written back to the object as an NSString.

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 (Application Kit)
EOTextField, EOTextArea, EOFormCell (Java Client)

Aspects
value A text attribute of the selected object.
editable (Yellow Box only) A boolean attribute of the selected object, which determines whether the text object is editable.
enabled (Java Client only) A boolean attribute of the selected object, which determines whether the text object is enabled.

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






Copyright © 1998, Apple Computer, Inc. All rights reserved.