Returns the temporary attributes for the character at a given index, and by reference the maximum range over which the attributes apply.
- macOS 10.5+
The index for which to return attributes. This value must not exceed the bounds of the receiver.
NULL, on output, contains the maximum range over which the attributes and values are the same as those at
location, clipped to
The range over which to search for continuous presence of the attributes at
location. This value must not exceed the bounds of the receiver.
The attributes for the character at
If you don’t need the longest effective range, it’s far more efficient to use the
temporary method to retrieve the attribute value.