Re: How to set width of "tab" (\t) in NSTextView?
Re: How to set width of "tab" (\t) in NSTextView?
- Subject: Re: How to set width of "tab" (\t) in NSTextView?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 24 Oct 2005 10:09:17 -0700
On Oct 22, 2005, at 8:26 AM, Andreas Mayer wrote:
Am 22.10.2005 um 15:39 Uhr schrieb Andrei Tchijov:
I did look through archives, but I guess I can not figure out
proper "search words".
Try NSParagraphStyle.
To amplify that: NSParagraphStyle is used as the value for
NSParagraphStyleAttributeName to set paragraph-level attributes
(including tab stop positions) on a per-paragraph basis. NSTextView
also has a defaultParagraphStyle that can be used to set the default
values for these attributes for text that lacks
NSParagraphStyleAttributeName. You can take a look at the source to
TextEdit for an example of this.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden