• 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: NSTextView Text Alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Text Alignment


  • Subject: Re: NSTextView Text Alignment
  • From: Jonathan Jackel <email@hidden>
  • Date: Sun, 22 Dec 2002 10:35:35 -0500

Create an NSParagraphStyle with the appropriate alignment, and then add the
attribute to the view's text storage over its entire range.

Jonathan


on 12/22/02 9:19 AM, email@hidden at email@hidden wrote:

> Hi,
>
> I asked this question before but got no response... I'm trying to align my
> entire NSTextView to center. I use this code:
>
> [viewField setAlignment:NSCenterTextAlignment range:NSMakeRange(0,
> [[viewField string] length])];
>
> PB will accept it, but the alignment never changes. Can anyone fix this code
> or give me other code that will align the Text View to center? Thanks.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSTextView Text Alignment (From: email@hidden)

  • Prev by Date: Detecting A Changed Cell When Editing Ends
  • Next by Date: Re: EOF from the Client?
  • Previous by thread: NSTextView Text Alignment
  • Next by thread: Detecting A Changed Cell When Editing Ends
  • Index(es):
    • Date
    • Thread