Instance Property


A Boolean that controls whether the user can edit the receiver’s text.


var isEditable: Bool { get set }


If true, then the user is allowed to both select and edit text. If flag is false, then the user isn’t permitted to edit text and the ability to select the receiver’s content is dependent on the value of isSelectable.

For example, if an NSTextField object is selectable but not editable, then made editable for a time, then made not editable, it remains selectable. To guarantee that text is neither editable or selectable, use isSelectable to disable text selection.

See Also

Controlling Selection and Editing

var isSelectable: Bool

A Boolean that determins whether the receiver is selectable (but not editable).