• 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: customizing text layout - where to start?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customizing text layout - where to start?


  • Subject: Re: customizing text layout - where to start?
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 19 Dec 2002 09:19:02 -0800

On Wednesday, December 18, 2002, at 08:03 PM, Koen van der Drift wrote:

In an NSTextView I would like to customize the way the text is drawn on the
screen. I looked at the layoutmanager and textstorage docs and they seem
pretty overwhelming, and I am confused on how approach this. One thing I
would like to add is a larger lineheight, so there is more whitespace
between each line. Another thing I am tring to do is to add a margin on the
left side of the text.

Any pointers to where to start would be appreciated.

The class you are looking for is NSParagraphStyle. The value for the NSParagraphStyleAttributeName attribute will be an instance of this class.

Douglas Davidson
_______________________________________________
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: 
 >customizing text layout - where to start? (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Glyph from String
  • Next by Date: RE: Get the text from a NSTextView?
  • Previous by thread: customizing text layout - where to start?
  • Next by thread: NSUserDefauts - Am I Missing the Obvious?
  • Index(es):
    • Date
    • Thread