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.