Instance Method


Returns an initialized text list.


- (instancetype)initWithMarkerFormat:(NSTextListMarkerFormat)format options:(NSUInteger)mask;



The marker format for the text list.


The marker options for the text list. Values for mask are listed in Constants.

Return Value

An initialized text list.


The marker format is specified as a constant string, except for a numbering specifier, which takes the form {keyword

}. The currently supported values for keyword include:
  • box

  • check

  • circle

  • diamond

  • disc

  • hyphen

  • square

  • lower-hexadecimal

  • upper-hexadecimal

  • octal

  • lower-alpha or lower-latin

  • upper-alpha or upper-latin

  • lower-roman

  • upper-roman

  • decimal

Thus, for example, @"({decimal})" would specify the format for a list numbered (1), (2), (3), and so on, and @"{upper-roman}" would specify the format for a list numbered I, II, III, IV, and so on. (All of these keywords are included in the Cascading Style Sheets level 3 specification.)

See Also