My English is terrible, and I don't know how to describe it.
Please look at the picture I uploaded first. This is a screenshot from Ulysses.
This should be a NSTextView control. After selecting all the text, I found that it could control the left-hand offset of a particular paragraph.
I tried to imitate it.
But I found that NSMutable Paragraph Style does not seem to achieve such an effect, it can only achieve the effect similar to that of the following picture.
Simply put, I want to achieve the effect of the previous picture, but only the effect of the second picture.
I looked at another question, but it was mainly about background color, and I wanted to know the question of indentation so that I could achieve more results.
NSTextView selection highlights all characters even paragraph indents
How is Ulysses implemented?