0

Good day,

I’ve been struggling with this recently. I would like to know how you can get the selected text block of NSTextTable so I can add blocks below and above and I would also like to know when a user is editing an NSTextTable.

Matthew1998
  • 119
  • 2
  • 8
  • In a `NSTextView`? Have you tried anything, like getting the text block from the attributes of the string? Do you want to know when the user is editing or if the edit is in a `NSTextTable`? – Willeke Mar 13 '21 at 13:56
  • @Willeke I haven't tried anything. honestly don't know the direction I should go. I would like to know when a user is editing an NSTextTable and the NSTextTableBlock which is being editing in an NSTextView – Matthew1998 Mar 13 '21 at 15:25
  • Are you familiar with `NSTextView` and `NSAttributedString`? – Willeke Mar 14 '21 at 10:32
  • @Willeke yeah I am – Matthew1998 Mar 14 '21 at 17:52
  • `NSParagraphStyle` has a property `textBlocks`. – Willeke Mar 14 '21 at 23:31

0 Answers0