This control class implements an editable text entry and display
field. NSTextField's companion
cell class is NSTextFieldCell, a subclass of
NSActionCell. Thus, NSTextField
is capable of sending action messages to targets. By default, actions
are sent to targets when the user completes editing by pressing the
Return key.
@interface NSTextField : NSControl
|
// Accessor Methods |
- (void)setDelegate:(id)anObject;
|
- (id)delegate;
|
- (void)setImportsGraphics:(BOOL)flag;
|
- (BOOL)importsGraphics;
|
- (void)setSelectable:(BOOL)flag;
|
- (void)setBordered:(BOOL)flag;
|
- (void)setBezeled:(BOOL)flag;
|
- (void)setAllowsEditingTextAttributes:(BOOL)flag;
|
- (BOOL)allowsEditingTextAttributes;
|
- (void)setBackgroundColor:(NSColor *)color;
|
- (NSColor *)backgroundColor;
|
- (void)setBezelStyle:(NSTextFieldBezelStyle)style;
|
- (NSTextFieldBezelStyle)bezelStyle;
|
- (void)setDrawsBackground:(BOOL)flag;
|
- (BOOL)drawsBackground;
|
- (void)setTextColor:(NSColor *)color;
|
- (NSColor *)textColor;
|
- (void)setEditable:(BOOL)flag;
|
// Instance Methods |
- (BOOL)acceptsFirstResponder;
|
- (BOOL)isBezeled;
|
- (BOOL)isBordered;
|
- (BOOL)isEditable;
|
- (BOOL)isSelectable;
|
- (void)selectText:(id)sender;
|
- (void)textDidBeginEditing:(NSNotification *)notification;
|
- (void)textDidChange:(NSNotification *)notification;
|
- (void)textDidEndEditing:(NSNotification *)notification;
|
- (BOOL)textShouldBeginEditing:(NSText *)textObject;
|
- (BOOL)textShouldEndEditing:(NSText *)textObject;
|