Text that the user can select or edit and that sends its action message to its target when the user presses the Return key.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
class NSTextField : NSControl
Overview
The NSText
class uses the NSText
class to implement its user interface.
The parent class, NSControl
, provides the methods for setting the values of the text field, such as string
and double
. There are corresponding methods to retrieve values.