Instance Method

setBaseWritingDirection:range:

Sets the base writing direction of a range of text.

Declaration

- (void)setBaseWritingDirection:(NSWritingDirection)writingDirection range:(NSRange)range;

Parameters

writingDirection

The new writing direction for the text in range.

range

The range of text that will have the new writing direction.

Discussion

Invoke this method to change the base writing direction from left-to-right to right-to-left for languages like Hebrew and Arabic, for example.

This method does not include undo support by default. Clients must invoke shouldChangeTextInRanges:replacementStrings: or shouldChangeTextInRange:replacementString: to include this method in an undoable action.

See Also

Setting Behavioral Attributes

allowsUndo

A Boolean value that indicates whether the receiver allows undo.

editable

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to edit text.

selectable

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to select text.

fieldEditor

A Boolean value that controls whether the text views sharing the receiver’s layout manager behave as field editors.

richText

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to apply attributes to specific ranges of text.

importsGraphics

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to import files by dragging.

- toggleBaseWritingDirection:

Changes the base writing direction of a paragraph between left-to-right and right-to-left.

Deprecated
defaultParagraphStyle

The receiver’s default paragraph style.

- outline:

Adds the outline attribute to the selected text attributes if absent; removes the attribute if present.

allowsImageEditing

Indicates whether image attachments should permit editing of their images.

automaticQuoteSubstitutionEnabled

A Boolean value that enables and disables automatic quotation mark substitution.

- toggleAutomaticQuoteSubstitution:

Changes the state of automatic quotation mark substitution from enabled to disabled and vice versa.

automaticLinkDetectionEnabled

A Boolean value that enables or disables automatic link detection.

- toggleAutomaticLinkDetection:

Changes the state of automatic link detection from enabled to disabled and vice versa.

displaysLinkToolTips

A Boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute.