Re: NSAttributeString change the paragraph style
Re: NSAttributeString change the paragraph style
- Subject: Re: NSAttributeString change the paragraph style
- From: Jens Alfke <email@hidden>
- Date: Mon, 11 Feb 2008 20:59:21 -0800
On 11 Feb '08, at 8:43 PM, Chris Schmitt wrote:
What would be the best way to change the paragraph style of an
NSAttributeString. I basically want to center align my text
programmatically.
Create an NSParagraphStyle object with the desired settings, and set
it as the vaue of the NSParagraphStyleAttributeName attribute, over
the entire character range of the paragraph (including the trailing
newline.)
—Jens_______________________________________________
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