Contents

isEditable

A Boolean that controls whether the receiver allows the user to edit its text.

Declaration

var isEditable: Bool { get set }

Discussion

If flag is true, the receiver allows the user to edit text and attributes; if flag is false, it doesn’t.

You can change the receiver’s text programmatically regardless of this setting. If the receiver is made editable, it’s also made selectable. NSText objects are by default editable.

See Also

Setting behavioral attributes