Setting the Line Height/ Line Spacing in an NSTextView.

Joshua Garnham <joshua.garnham-/[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
How would I set the Line Height/ Line Spacing in an NSTextView? e.g How
tall each line is or how much space is between each line.


Here's what I've tried (but doesn't work), it is in a NSTextView subclass … 
- (void)setDefaultParagraphStyle:(NSMutableParagraphStyle *)paragraphStyle {
    CGFloat spacing = 5.0f;
    [paragraphStyle setLineSpacing:spacing];
    [paragraphStyle setMinimumLineHeight:spacing];
    [paragraphStyle setMaximumLineHeight:spacing];
}

What's gone wrong?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.