Instance Property

delegate

The delegate for the text storage object.

Declaration

iOS, tvOS
@property(weak, nonatomic) id<NSTextStorageDelegate> delegate;
macOS
@property(weak) id<NSTextStorageDelegate> delegate;

Discussion

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