Maturity Index: Experimental
Typically, an application will subclass TextAttribute and use its own subclass with the Text instance method addAttribute:.
+normalA Text Attribute instance with emphasiscode set to 0.
+newA Text Attribute instance with emphasiscode set to 0.
+boldCreates a Textattribute with emphasiscode set to 1.
+emphasiscode:(unsigned)nA Text Attribute instance with emphasiscode set to n. This value may suffice for simple applications, but normally a subclass of TextAttribute would be used to associate more sophisticated values to a Text Attribute (such as URL of a hypertext link, or such as a Color value, or an X-Windows font etc.).
- (unsigned)emphasiscode
-emphasiscode:(unsigned)c
- (unsigned)size
- (unsigned)position
- (BOOL)isEqual:attribThe equality test for TextAttributes does NOT compare the run length (and start position). This is because isEqual: is used by RunArray's coalesce method to merge adjacent TextAttribute instances.
- (BOOL)dominates:attribShould return YES if the receiver dominates attrib. This implies that, when the receiver is added to a list of Text Attributes, attributes that are dominated by the receiver will be removed.
The default returns NO, unless both objects are members of the same class and equal to each other (in which case they don't need to be added more than once to the attribute list).
-reset
- (BOOL)set
-printOn:(IOD)aFile