Left indentation of the NSTextView
问题 I wrote the following code: NSMutableParagraphStyle *paragraphStyle; double indent = 100 * mm2pt / 10.0; if ( !m_textView ) return; if ( start == -1 && end == -1 ) { if( style.HasLeftIndent() ) { paragraphStyle = [[NSMutableParagraphStyle alloc] init]; [paragraphStyle setHeadIndent: indent]; [paragraphStyle setFirstLineHeadIndent: indent]; [m_textView setDefaultParagraphStyle:paragraphStyle]; [paragraphStyle release]; } } else // Set the attributes just for this range. { NSRange range =