init(markerFormat:options:)
Returns an initialized text list.
Declaration
convenience init(markerFormat: NSTextList.MarkerFormat, options: Int)Parameters
- markerFormat:
The marker format for the text list.
- options:
The marker options for the text list. Values for
maskare listed in Constants.
Return Value
An initialized text list.
Discussion
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:
boxcheckcirclediamonddischyphensquarelower-hexadecimalupper-hexadecimaloctallower-alphaorlower-latinupper-alphaorupper-latinlower-romanupper-romandecimal
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.)