Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights
Reserved.
NSTextFieldCell
Inherits From: NSActionCell : NSCell : NSObject
Conforms To: NSCoding, NSCopying (NSCell)
NSObject (NSObject)
Declared In: AppKit/NSTextFieldCell.h
Class Description
NSCells display text or imagesan NSTextFieldCell is simply an NSCell
that displays text and that keeps track of its background and text colors.
Normally, the NSCell class assumes white as the background when bezeled, and
light gray otherwise, and the text is always black. With NSTextFieldCell, you
can specify those colors.
Modifying Graphic Attributes
- - (NSColor *)backgroundColor Returns the color of the background.
- - (BOOL)drawsBackground Returns whether the NSTextFieldCell draws its
own background.
- - (void)setBackgroundColor:(NSColor *)aColor Sets the color of
the background to aColor.
- - (void)setDrawsBackground:(BOOL)flag Sets whether the
NSTextFieldCell draws its own background.
- - (void)setTextColor:(NSColor *)aColor Sets the color of the text
to aColor.
- - (id)setUpFieldEditorAttributes:(id)textObject Sets text
attributes of the field editor to be the same as those of textObject.
Used to set the attributes of text such as color and background color, for
which there are no explicit methods.
- - (NSColor *)textColor Returns the color of the text.