NSTextTableBlock Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.4 and later.
Declared in
NSTextTable.h
Companion guides
Text System Overview
Text Layout Programming Guide
Related sample code

Overview

An NSTextTableBlock object represents a text block that appears as a cell in a text table.

Tasks

Creation

Getting the Block’s Enclosing Table

Getting Information About the Block’s Position in Its Enclosing Table

Instance Methods

columnSpan

Returns the number of table columns spanned by this text table block.

- (NSInteger)columnSpan
Return Value

The number of table columns spanned by this text table block.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSTextTable.h

initWithTable:startingRow:rowSpan:startingColumn:columnSpan:

Returns an initialized text table block.

- (id)initWithTable:(NSTextTable *)table startingRow:(NSInteger)row rowSpan:(NSInteger)rowSpan startingColumn:(NSInteger)col columnSpan:(NSInteger)colSpan
Parameters
table

The text table containing this text table block.

row

The table row at which the text table block starts.

rowSpan

How many rows the text table block covers.

col

The table column at which the text table block starts.

colSpan

How many columns the text table block covers.

Discussion

This is the designated initializer.

Availability
  • Available in OS X v10.4 and later.
Related Sample Code
Declared In
NSTextTable.h

rowSpan

Returns the number of table rows spanned by this text table block.

- (NSInteger)rowSpan
Return Value

The number of table rows spanned by this text table block.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSTextTable.h

startingColumn

Returns the table column at which this text table block starts.

- (NSInteger)startingColumn
Return Value

The table column at which this text table block starts.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSTextTable.h

startingRow

Returns the table row at which this text table block starts.

- (NSInteger)startingRow
Return Value

The table row at which this text table block starts.

Availability
  • Available in OS X v10.4 and later.
Declared In
NSTextTable.h

table

Returns the table containing this text table block.

- (NSTextTable *)table
Return Value

The table containing this text table block.

Availability
  • Available in OS X v10.4 and later.
Related Sample Code
Declared In
NSTextTable.h