Questions tagged [nstexttab]

An NSTextTab object represents a tab in an NSParagraphStyle object, storing an alignment type and location. NSTextTab objects are most frequently used with the Application Kit’s text system and with NSRulerView and NSRulerMarker objects.

An NSTextTab object represents a tab in an NSParagraphStyle object, storing an alignment type and location. NSTextTab objects are most frequently used with the Application Kit’s text system and with NSRulerView and NSRulerMarker objects.

The text system supports four alignment types: left, center, right, and decimal (based on the decimal separator character of the locale in effect). These alignment types are absolute, not based on the line sweep direction of text. For example, tabbed text is always positioned to the left of a right-aligned tab, whether the line sweep direction is left to right or right to left. A tab’s location, on the other hand, is relative to the back margin. A tab set at 1.5”, for example, is at 1.5” from the right in right to left text.

Click Here for Apple Docs of NSTextTab

6 questions
8
votes
2 answers

NSAttributedString with image attachment and NSTextTab, text not aligned

I'm trying to have a UIlabel with an image and title on the left and a list of descriptions with bullets on the right. To do that I'm using NSAttributedString like this : NSMutableParagraphStyle *pStyle = [[NSMutableParagraphStyle alloc]…
Mosbah
  • 1,347
  • 1
  • 14
  • 28
2
votes
0 answers

How to add NSTextTable editing features in NSTextView menu?

Good day, I'll like to know how to add NSTextTable editing features in NSTextView menu such as adding row above and below, deleting the column and removing the table, I know how to call the table panel for NSTextView. I would like to know if apple…
Matthew1998
  • 119
  • 2
  • 8
2
votes
1 answer

NSTextAlignmentCenter and NSTextAlignmentRight are the wrong way round in NSTextTab?

Can anyone please check something for me... Just to make sure I'm not going mad! I created an NSMutableParagraphStyle with tabStops, but they weren't appearing where I was expecting: float width =…
jowie
  • 8,028
  • 8
  • 55
  • 94
1
vote
1 answer

How to remove TapStops location recursively using enumerateAttributes in iOS

I've to show HTML data in UITextView, this HTML data sometimes contains nested tags for lists, which cause extra padding on device, I want to remove extra padding using swift side since padding from CSS doesn't seem to be working here. Here is how…
Zubair
  • 915
  • 2
  • 9
  • 28
1
vote
2 answers

How can I get a Decimal Tab Stop on iOS when NSTextTab on iOS doesn't offer that option?

When developing for OS X, you have the option of specifying the DecimalTabStopType to get a tab stop on the decimal point of a column of numbers. However, this option isn't available in iOS - is there some way to achieve the same affect?
David H
  • 40,852
  • 12
  • 92
  • 138
0
votes
1 answer

Unable to render an NSAttributedString as a 2 column tabbed bullet list in a PDF

I am constructing a large string that is output into a PDF file, but right now, I'd like to have a 2 column, bulleted list in my document. However, I have yet to figure out the correct settings that will allow me to get the desired tabbing…
CodeBender
  • 35,668
  • 12
  • 125
  • 132