↧
Answer by K307 for How to detect line breaks in TextView in AppKit?
I have found a conceptual workaround: I resorted to drawing rectangles for individual characters, rather than groups of characters, so line break detection was avoided. Not optimal, but works.
View ArticleHow to detect line breaks in TextView in AppKit?
General idea: highlight groups of characters in a text paragraph in NSScrollView (that contains NSTextView). I am getting bounding rectangle of the chosen characters from...
View Article