NSParagraphStyle defaultParagraphStyle not having effect
问题 Trying to set the paragraph styles for an NSTextView. Am I doing something wrong here, or putting the code in the wrong place perhaps..? I have this code in the subclass of my NSTextView. This does not affect my text view in any way: class EditorTextView: NSTextView { override func drawRect(dirtyRect: NSRect) { super.drawRect(dirtyRect) // to do } override func awakeFromNib() { var parastyle:NSMutableParagraphStyle = NSMutableParagraphStyle() parastyle.lineSpacing = 20 self