- Inherits from:
- NSActionCell : NSCell : NSObject
- Conforms to:
- NSCoding
- (NSCell)
- NSCopying (NSCell)
- NSObject (NSObject)
Declared in:
- AppKit/NSFormCell.h
This class is used to implement text entry fields in an NSForm. The left part of an NSFormCell is a title. The right part is an editable text entry field.
For more on the use of NSFormCell, see the class specification for "NSForm" .
- Initializing an NSFormCell
- - initTextCell:
- Asking about a cell's appearance
- - isOpaque
- Asking about a cell's title
- - attributedTitle
- - title
- - titleAlignment
- - titleFont
- - titleWidth
- Changing the cell's title
- - setAttributedTitle:
- - setTitle:
- - setTitleAlignment:
- - setTitleFont:
- - setTitleWidth:
- Setting a keyboard equivalent
- - setTitleWithMnemonic:
- (NSAttributedString *)attributedTitle
- (id)initTextCell:(NSString
*)aString
Returns self.
See Also: - setTitle:
- (BOOL)isOpaque
- (void)setAttributedTitle:(NSAttributedString
*)anAttributedString
- (void)setTitle:(NSString
*)aString
- (void)setTitleAlignment:(NSTextAlignment)alignment
NSLeftTextAlignment
, NSRightTextAlignment
,
or NSCenterTextAlignment
.- (void)setTitleFont:(NSFont
*)font
- (void)setTitleWidth:(float)width
Once you have set the width this way, the Application Kit stops setting the width automatically; you will need to invoke setTitleWidth: every time the title changes. If you want the Application Kit to resume automatic width assignments, invoke setTitleWidth: with a negative width value.
- (void)setTitleWithMnemonic:(NSString
*)titleWithAmpersand
For example, if titleWithAmpersand is "T&itle," the cell's title will be displayed as "Title" (the mnemonic character, i, is underlined). If a user types Alt-i, it will have the same effect as clicking in the text entry field.
See Also: - setTitle:
- (NSString *)title
- (NSTextAlignment)titleAlignment
NSLeftTextAlignment
, NSCenterTextAlignment
,
or NSRightTextAlignment
(the default).- (NSFont *)titleFont
- (float)titleWidth
See Also: - titleWidth:
- (float)titleWidth:(NSSize)aSize
See Also: - titleWidth