Instance Property

selectable

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

Declaration

@property(getter=isSelectable) BOOL selectable;

Discussion

If flag is YES, the receiver allows the user to select text; if flag is NO, it doesn’t.

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

See Also

Setting behavioral attributes

editable

A Boolean that controls whether the receiver allows the user to edit 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.