Enumeration

NSWritingDirectionFormatType

Options for specifying writing direction used with NSWritingDirectionAttributeName.

Declaration

typedef enum NSWritingDirectionFormatType : NSInteger {
    ...
} NSWritingDirectionFormatType;

Overview

You can use the logical OR operator to combine these constants with NSWritingDirectionLeftToRight or NSWritingDirectionRightToLeft when used with NSWritingDirectionAttributeName to specify formatting controls defined by the Unicode Bidirectional Algorithm in Unicode Standard Annex #9.

Topics

Constants

NSWritingDirectionEmbedding

Text is embedded in text with another writing direction. For example, an English quotation in the middle of an Arabic sentence could be marked as being embedded left-to-right text.

NSWritingDirectionOverride

Enables character types with inherent directionality to be overridden when required for special cases, such as for part numbers made of mixed English, digits, and Hebrew letters to be written from right to left.