Instance Property

layoutManager

The receiver’s layout manager.

Declaration

unowned(unsafe) var layoutManager: NSLayoutManager? { get set }

Discussion

Avoid assigning a layout manager directly through this property. Instead, use the replaceLayoutManager(_:) method when you want to replace the layout manager. The value of this property is set automatically when you add a text container to your layout manager using the addTextContainer(_:) method.

See Also

Managing Text Components

func replaceLayoutManager(NSLayoutManager)

Replaces the layout manager for the group of text system objects containing the receiver.

var textView: NSTextView?

The receiver’s text view.