Contents

NSTextTableBlock

A text block that represents a single cell in a text table.

Declaration

class NSTextTableBlock

Mentioned in

Overview

NSTextTableBlock is a subclass of NSTextBlock that places a paragraph in a cell of an NSTextTable. When you create an NSTextTableBlock, you specify the table it belongs to, the cell’s starting row and column, and how many rows and columns the cell spans.

To build a table, create an NSTextTable, then create an NSTextTableBlock for each cell. Assign each block to a paragraph by setting textBlocks on an NSMutableParagraphStyle and applying that style to the paragraph’s range in your attributed string.

Topics

Creating a text table block

Accessing the parent table

Accessing cell position

See Also

Tables