Instance Property

delegate

The delegate for the text storage object.

Declaration

weak var delegate: NSTextStorageDelegate? { get set }

Discussion

Use a delegate object to monitor edits occurring to the text contents. Your delegate object must conform to the NSTextStorageDelegate protocol.

See Also

Processing the Editing Actions

protocol NSTextStorageDelegate

A set of optional methods implemented by delegates of NSTextStorage objects to handle text-edit processing.