• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting the Line Height/ Line Spacing in an NSTextView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Setting the Line Height/ Line Spacing in an NSTextView.
      • From: Fritz Anderson <email@hidden>
    • Re: Setting the Line Height/ Line Spacing in an NSTextView.
      • From: Ross Carter <email@hidden>
  • Prev by Date: Re: MyDocument.xib v MainMenu.xib
  • Next by Date: Re: MyDocument.xib v MainMenu.xib
  • Previous by thread: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Next by thread: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Index(es):
    • Date
    • Thread