Replies: 1 comment
-
STTextView does not use
I use it for annotations in the Demo project let me know if you know how to use it of if you need more help on that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building an app that relies extensively on NSTextView. I've been finding of late that drawing performance (particularly when scrolling and resizing these views) left much to be desired. I was hoping that STTextView could be a good replacement!
Unfortunately, one feature that I'm using, that doesn't seem to be available here, is
NSLayoutManager
'sboundingRect(forGlyphRange)
method. I did some spelunking and it seemsNSLayoutManager
is largely not being used in this project. I can imagine that this request might be a heavy lift.As for my use case, my application shows an
NSView
above particular blocks of text. Here's an example:I derive the bounds of the view by calling that layout manager function to ensure that the view perfectly covers the range of the text at issue.
Let me know if you have any questions! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions