NSTextView tab stop count
NSTextView tab stop count
- Subject: NSTextView tab stop count
- From: tridiak <email@hidden>
- Date: Sat, 15 Oct 2016 02:43:52 +1300
Why can’t I use more than 12 tab stops in NSTextView (enclosed by a standard NSScrollView)?
I can use less, but I need significantly more.
Is it to do with the ruler?
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
NSMutableArray* ma=[NSMutableArray array];
for (int t=0; t< some large number; t++) {
[ma addObject:[[NSTextTab alloc] initWithType:NSLeftTabStopType location:t*28.0f]];
}
[style setTabStops:ma];
[mas addAttribute:NSParagraphStyleAttributeName value:style range:{0,mas.length}];
This works up to 12. Above that, it sticks to 12.
Applying something similar directly to the NSTextView paragraph style has the same problem.
How does Xcode & Text Wrangler pull it off?
TIA
Mark
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden