# NSTextField

scottc@net-community.com
far@ix.netcom.com
n.pero@mi.flashnet.it

Text field control class for text entry

1996 Free Software Foundation, Inc.
Software documentation for the NSTextField class
AppKit/NSTextField.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
acceptsFirstResponder

Returns whether the NSTextField accepts to be the first responder. This method returns `YES` if the NSTextField is selectable and if there is no NSText object

See Also: -becomeFirstResponder -isSelectable [NSView -acceptsFirstResponder]

allowsEditingTextAttributes
Description forthcoming.
backgroundColor

Returns the color used to draw the background.

See Also: -setBackgroundColor: setDrawsBackground: -drawsBackground [NSTextFieldCell -backgroundColor]

bezelStyle
Description forthcoming.
delegate

Returns the delegate object.

See Also: -setDelegate:

drawsBackground

Returns whether the NSTextField draws the background. By default `NO`.

See Also: -setDrawsBackground: [NSTextFieldCell -drawsBackground]

errorAction
Description forthcoming.
importsGraphics
Description forthcoming.
isBezeled

Returns whether the NSTextField's cell has bezeled border.

See Also: -setBezeled: [NSTextFieldCell -isBezeled]

isBordered

Returns whether the NSTextField's cell has border.

See Also: -setBordered: [NSTextFieldCell -isBordered]

isEditable

Returns whether the NSTextField is editable. By default a NSTextField is not editable.

See Also: -setEditable: [NSCell -isEditable]

isSelectable

Returns whether the NSTextField is selectable.

See Also: -setSelectable: [NSCell -isSelectable]

nextText

Returns the object selected when the user presses the TAB key.

See Also: -setNextText: [NSView -nextKeyView]

previousText

Returns the object selected when the user presses the Shift-TAB key.

See Also: -setPreviousText: [NSView -previousKeyView]

selectText:
sender

Selects all the text of the NSTextField if it's selectable.

setAllowsEditingTextAttributes:
flag
Description forthcoming.
setBackgroundColor:
aColor

Sets the color used to draw the background to aColor.

See Also: -backgroundColor -setDrawsBackground: -drawsBackground [NSTextFieldCell -setBackgroundColor:]

setBezelStyle:
style
Description forthcoming.
setBezeled:
flag

Sets whether the NSTextField's cell has bezeled border.

See Also: -isBezeled [NSTextFieldCell -setBezeled:]

setBordered:
flag

Sets whether the NSTextField's cell has border.

See Also: -isBordered [NSTextFieldCell -setBordered:]

setDelegate:
anObject

Sets the delegate to anObject.

See Also: -delegate

setDrawsBackground:
flag

Sets whether the NSTextField draws the background. By default `NO`.

See Also: -drawsBackground [NSTextFieldCell -setDrawsBackground:]

setEditable:
flag

Sets whether the NSTextField's cell and the NSText object is editable. By default a NSTextField is not editable.

See Also: -isEditable [NSCell -setEditable:] [NSText -setEditable:]

setErrorAction:
aSelector
Description forthcoming.
setImportsGraphics:
flag
Description forthcoming.
setNextText:
anObject

Sets the object selected when the user presses the TAB key to anObject.

See Also: -nextText [NSView -setNextKeyView:]

setPreviousText:
anObject

Sets the object selected when the user presses the shift-TAB key to anObject.

See Also: -previousText [NSView -setPreviousKeyView:]

setSelectable:
flag

Sets whether the NSTextField's cell and the NSText object is selectable.

See Also: -isSelectable [NSTextFieldCell -setSelectable:] [NSText -setSelectable:]

setTextColor:
aColor

Sets the color with which the text will be draw to aColor.

See Also: -textColor [NSTextFieldCell -setTextColor:]

setTitleWithMnemonic:
aString
Description forthcoming.
textColor

Returns the colour used to draw the text.

See Also: -setTextColor: [NSTextFieldCell -textColor]

textDidBeginEditing:
aNotification
Description forthcoming.
textDidChange:
aNotification
Description forthcoming.
textDidEndEditing:
aNotification
Description forthcoming.
textShouldBeginEditing:
textObject
Description forthcoming.
textShouldEndEditing:
textObject
Description forthcoming.