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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to