Setting the Line Height/ Line Spacing in an NSTextView.
Setting the Line Height/ Line Spacing in an NSTextView.
- Subject: Setting the Line Height/ Line Spacing in an NSTextView.
- From: Joshua Garnham <email@hidden>
- Date: Wed, 30 Dec 2009 15:43:09 +0000 (GMT)
How would I set the Line Height/ Line Spacinh 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 wrong with it?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden