Copyright ©1995 by NeXT Computer, Inc. All Rights Reserved.
| DBTextFormatter |
| Inherits From: | DBFormatter : Object | |
| Declared In: | dbkit/DBTextFormatter.h |
| Class Description |
| DBTextFormatter is one of three subclasses of DBFormatter; the others are DBEditableFormatter and DBImageFormatter. For read-only character-based display of numeric or character information, DBTextFormatter is faster than DBEditableTextFormatter. See the description of the superclass, DBFormatter. |
| Instance Variables |
| id font;
BOOL batching; |
| font | The current font for displaying text | |
| batching | YES if the same formats apply to a batch of records |
| Method Types |
| Initializing |
| Manipulating font |
| Batching format requests |
| Archiving |
| Instance Methods |
| beginBatching: |
| Notifies the DBTextFormatter that a formatting session is about to begin. You never invoke this method directly; it's invoked by the DBTableView that's using this object as a formatter. The end of a formatting session is signalled by endBatching.
See also: |
| endBatching |
| Notifies the DBTextFormatter that a formatting session is over. You never invoke this method directly; it's invoked by the DBTableView that's using this object as a formatter. The beginning of a formatting session is signalled by beginBatching:.
See also: |
| font |
| Returns the DBTextFormatter's Font object. |
| free |
| Frees the DBTextFormatter instance. |
| init |
| Initializes the DBTextFormatter instance. In the course of initializing, the display font is set to the system default font at 12 point and batching is turned off. Returns self. |
| read: |
| Reads the DBTextFormatter from stream. Returns self. |
| resetBatching: |
| Same as beginBatching:, but has no effect if batching is already in effect. Returns self. |
| setFont: |
| Sets the current font to the Font object aFont. Returns self. |
| write: |
| Archives the DBTextFormatter to stream. Returns self. |