Protocol

NSTextLayoutOrientationProvider

A set of methods that define the orientation of text for an object.

Declaration

@protocol NSTextLayoutOrientationProvider

Overview

In macOS, the NSTextContainer and NSTextView classes adopt this protocol; in iOS, only the NSTextContainer class implements it. An NSTextContainer object returns the value from its associated text view when present; otherwise, it returns NSTextLayoutOrientationHorizontal by default. If you define a custom NSTextContainer object, you can override this method and return NSTextLayoutOrientationVertical to support laying out text vertically.

Topics

Getting Layout Orientation

layoutOrientation

The default layout orientation.

Required.

Relationships

Conforming Types

See Also

Layout

NSLayoutManager

An object that coordinates the layout and display of characters held in an NSTextStorage object.

NSLayoutManagerDelegate

A set of optional methods implemented by delegates of NSLayoutManager objects.