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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com