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.
NSFormCell
Inherits From: NSActionCell : NSCell : NSObject
Conforms To: NSCoding, NSCopying (NSCell)
NSObject (NSObject)
Declared In: AppKit/NSFormCell.h
Class Description
This class is used to implement entries in an NSForm. It displays a title
within itself, on the left-hand side of the cell. Editing is allowed only in
the remaining (right-hand) portion.
See the NSForm class specification for more on the use of NSFormCell.
Initializing an NSFormCell
- - (id)initTextCell:(NSString *)aString Initializes a new
NSFormCell with aString as its title.
Determining an NSFormCell's Size
- - (NSSize)cellSizeForBounds:(NSRect)aRect Calculates the
NSFormCell's size within aRect.
Determining Graphic Attributes
- - (BOOL)isOpaque Returns whether the NSFormCell is opaque.
Modifying the Title
- - (void)setTitle:(NSString *)aString Sets the NSFormCell's title
to aString.
- - (void)setTitleAlignment:(NSTextAlignment)mode Sets the
alignment of the title to mode.
- - (void)setTitleFont:(NSFont *)fontObject Sets the font used to
draw the title to fontObject.
- - (void)setTitleWidth:(float)width Sets the width of the
NSFormCell's title field to width.
- - (NSString *)title Returns the NSFormCell's title.
- - (NSTextAlignment)titleAlignment Returns the alignment of the title.
- - (NSFont *)titleFont Returns the font used to draw the title.
- - (float)titleWidth Returns the width of the title.
- - (float)titleWidth:(NSSize)aSize Returns the width of the title,
constrained to aSize.
Displaying
- - (void)drawInteriorWithFrame:(NSRect)cellFrame Draws only the
editable text portion of the FormCell.
inView:(NSView *)controlView