• 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 alignment of NSTextView programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Setting alignment of NSTextView programmatically (From: Ken Worley <email@hidden>)
 >Re: Setting alignment of NSTextView programmatically (From: Douglas Davidson <email@hidden>)
 >Re: Setting alignment of NSTextView programmatically (From: Ken Worley <email@hidden>)

  • Prev by Date: Re: KVC and KVO for arrays
  • Next by Date: Re: Uncaught exceptions thrown by Cocoa documented anywhere?
  • Previous by thread: Re: Setting alignment of NSTextView programmatically
  • Next by thread: Re: Setting alignment of NSTextView programmatically [SOLVED]
  • Index(es):
    • Date
    • Thread