Thanks very much for the suggestion and the sample code. I'll plunge
back into the problem over the next few days.
Boyd
This is what I use to set 100 tabStops with interval 80. I had to
weed out some additional code, so there is no guarantee that it
works right away, but you will get the general idea
- (IBAction)formatTextView:(id)sender
{
int cnt;
int numStops = 100;
int tabInterval = 80;
NSTextTab *tabStop;
NSMutableDictionary *attrs = [[NSMutableDictionary alloc]
init]; //attributes for attributed String of TextView
Take a look at NSMutableParagraphStyle. That's where
you can set tab stops as well as indentation.
Scott
On 27 Mar, 2006, at 22:37, Boyd Collier wrote:
I'd like to programmatically change all the tab settings in the
ruler used by a particular instance of an NSTextView but haven't
been able to find a simple way to do this. Any suggestions would
be appreciated.
Boyd
_______________________________________________
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