HFTextRepresenter Class Reference

An HFRepresenter that draws text (e.g. the hex or ASCII view). More...

Inheritance diagram for HFTextRepresenter:

HFRepresenter HFHexTextRepresenter HFStringEncodingTextRepresenter

List of all members.

Public Member Functions

(NSArray *) - rowBackgroundColors
(void) - setRowBackgroundColors:
(void) - setBehavesAsTextField:
(BOOL) - behavesAsTextField


Detailed Description

HFTextRepresenter is an abstract subclass of HFRepresenter that is responsible for displaying text. There are two concrete subclass, HFHexTextRepresenter and HFStringEncodingTextRepresenter.

Most of the functionality of HFTextRepresenter is private, and there is not yet enough exposed to allow creating new representers based on it. However, there is a small amount of configurability.


Member Function Documentation

- (NSArray *) rowBackgroundColors  

Returns the per-row background colors. The default is -[NSControl controlAlternatingRowBackgroundColors].

- (void) setRowBackgroundColors: (NSArray *)  colors  

Sets the per-row background colors. Each row is drawn with the next color in turn, cycling back to the beginning when the array is exhausted. Any empty space is filled with the first color in the array. If the array is empty, then the background is drawn with clearColor.

- (void) setBehavesAsTextField: (BOOL)  val  

Set whether the text view behaves like a text field (YES) or a text view (NO). Currently this determines whether it draws a focus ring when it is the first responder.

- (BOOL) behavesAsTextField  

Returns whether the text view behaves like a text field (YES) or a text view (NO).


The documentation for this class was generated from the following file:

Generated on Thu Jul 23 16:18:22 2009 for HexFiend by  doxygen 1.5.9