Re: Text Indentation
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.