• 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: NSAttributeString change the paragraph style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSAttributeString change the paragraph style (From: Chris Schmitt <email@hidden>)

  • Prev by Date: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Next by Date: Re: Fwd: Re: Login item support for Panther, Tiger and Leopard
  • Previous by thread: NSAttributeString change the paragraph style
  • Next by thread: Newb question: which feature am I looking for?
  • Index(es):
    • Date
    • Thread