Returns the index of the closest character before the given index, and within the given range, that can be placed on a new line by hyphenating.
- macOS 10.3+
The location in the attributed string.
Returns the index of the closest character before
a, that can be placed on a new line by hyphenating. Returns NSNotFound if no line break by hyphenation is possible before
In other words, during text layout, finds the appropriate line break by hyphenation (the character index at which the hyphen glyph should be inserted) when the character at
index won’t fit on the same line as the character at the beginning of
index or any part of
a lies beyond the end of the receiver’s characters.