Instance Property

editable

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

Declaration

@property(getter=isEditable) BOOL editable;

Discussion

If flag is YES, the receiver allows the user to edit text and attributes; if flag is NO, 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

selectable

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

fieldEditor

A Boolean that controls whether the receiver interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder.

richText

A Boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text.

importsGraphics

A Boolean that controls whether the receiver allows the user to import files by dragging.