Re: Setting alignment of NSTextView programmatically
Re: Setting alignment of NSTextView programmatically
- Subject: Re: Setting alignment of NSTextView programmatically
- From: Jens Alfke <email@hidden>
- Date: Wed, 13 Feb 2008 15:37:02 -0800
On 13 Feb '08, at 2:33 PM, Ken Worley wrote:
Unfortunately, same thing - still left-aligned.
Might be because -alignRight: operates on the selection, and there
isn't any selected text.
It might be better to go down to the NSAttributedString layer — get
the view's textStorage, and set the NSParagraphStyleAttributeName
attribute of the entire text to an NSParagraphStyle object with right
alignment.
—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