• 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
Re: Setting The Line Height Of A NSTextField.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting The Line Height Of A NSTextField.


  • Subject: Re: Setting The Line Height Of A NSTextField.
  • From: Graham Cox <email@hidden>
  • Date: Fri, 7 Aug 2009 22:48:07 +1000


On 07/08/2009, at 10:11 PM, Joshua Garnham wrote:

I have a Sub-Classed NSTextFieldCell and am looking for some code to adjust the line height for each line so it looks right on the background of my NSTextField.

Same answer as the padding...

Line heights (or more accurately, line spacing) is a property of the NSParagraphStyle set within the text's attributes. If you are drawing an attributed string and allowing it to naturally wrap to a number of lines, the paragraph style will give you a great degree of control over the layout.

--Graham


_______________________________________________

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


References: 
 >Setting The Line Height Of A NSTextField. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: Setting The Line Height Of A NSTextField.
  • Next by Date: Core Data inverse relationships
  • Previous by thread: Setting The Line Height Of A NSTextField.
  • Next by thread: Core Data inverse relationships
  • Index(es):
    • Date
    • Thread