Instance Method

setLayoutOrientation:

Changes the receiver's layout orientation and invalidates the contents.

Declaration

- (void)setLayoutOrientation:(NSTextLayoutOrientation)orientation;

Parameters

theOrientation

The text layout orientation.

Discussion

Unlike other NSTextView properties, this is not shared by sibling views. It also rotates the bounds 90 degrees, swaps horizontal and vertical bits of the autoresizingMask mask, and reconfigures horizontallyResizable and verticallyResizable properties accordingly. Also, if enclosingScrollView returns non-nil, it reconfigures the horizontal and vertical ruler views, the horizontal and vertical scrollers, and the frame.

See Also

Changing Layout Orientation

- changeLayoutOrientation:

An action method that sets the layout orientation of the text.