Next Page > Hide TOC

NSTextTableBlock Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac OS X v10.4 and later.
Declared in
NSTextTable.h
Companion guides
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
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
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
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
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
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
Related Sample Code
Declared In
NSTextTable.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.