0

Good day,

Im trying to get the attributed string for the NSTextContainer not the NSTextStorage, any time I use the method that returns the attributedString of a textView, it returns the attributedString for the NSTextStorage and I just want the attributedString for that bounding rect? Any Suggestions? I've been struggling with this for days.

I'll appreciate any assistance.

Thank you

Matthew1998
  • 119
  • 2
  • 8
  • Maybe with `glyphRange(forBoundingRect:in:)`? But it's unclear on you retrive the attributedString from the TextContainer... – Larme Jun 02 '21 at 07:54
  • How about `glyphRange(for:)`, `characterRange(forGlyphRange:actualGlyphRange:)` and `attributedSubstring(from:)`? – Willeke Jun 02 '21 at 08:28

0 Answers0