Check out NSTextView's setTypingAttributes: method.  And look up 
the meaning of NSParagraphStyleAttributeName.  It's really not 
so hard...

Paul Sanders.

----- Original Message ----- 
From: "Joshua Garnham" <joshua.garn...@yahoo.co.uk>
To: "Graham Cox" <graham....@bigpond.com>
Cc: <cocoa-dev@lists.apple.com>
Sent: Friday, January 01, 2010 12:35 PM
Subject: Re: Setting the Line Height/ Line Spacing in an 
NSTextView.


Oh, I see. That works partly. The text that is already in the 
NSTextView at launch has the new Line Height but as soon as you 
start to type the line your typing on resets it's line height to 
default.



_______________________________________________

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