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

Re: Text Indentation


  • Subject: Re: Text Indentation
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 12 Jun 2003 09:21:42 -0700

On Thursday, June 12, 2003, at 5:18 AM, Chris Ross wrote:

I wish to have it such that wrapped lines within an NSTextView are
indented. E.g.:

line line line line line line line line line line line line line line
line line line line line line line line line line line line line

line line line line line line line line line line line line line line
line line line line line line line line line line line line line
line line line line line line line line line line line line line

I know it can be done as TextEdit, when you drag the left marker-line
within the ruler, it will do it. I just cant work out how to do it in
a programable way. Any answer or hints would be greatly received,

When you manipulate the ruler in TextEdit, what you are actually setting is the paragraph style. This is an attribute, NSParagraphStyleAttributeName, whose value is an instance of NSParagraphStyle. NSParagraphStyle collects all of the paragraph-level settings: margins, including first-line head indent, plus tab stops, line spacing, and so forth.

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: 
 >Text Indentation (From: Chris Ross <email@hidden>)

  • Prev by Date: Re: WWDC tools wishlist (Bring back EOF!)
  • Next by Date: Re: [OT] Mouse buttons (was Re: troubling article)
  • Previous by thread: Text Indentation
  • Next by thread: Problems with OCUnit
  • Index(es):
    • Date
    • Thread