Quantcast
Channel: How to detect line breaks in TextView in AppKit? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


How 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
Browsing latest articles
Browse All 2 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>