• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView tab stop count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextView tab stop count
      • From: Shane Stanley <email@hidden>
    • Re: NSTextView tab stop count
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Font alignment when using bold variant of system font
  • Next by Date: Re: NSTextView tab stop count
  • Previous by thread: Re: Getting/Setting FinderInfo attributes using native Cocoa API?
  • Next by thread: Re: NSTextView tab stop count
  • Index(es):
    • Date
    • Thread