Mac Developer Library

Developer

AppKit Framework Reference NSTextTable Class Reference

Options
Deployment Target:

On This Page
Language:

NSTextTable

An NSTextTable object represents a text table as a whole. It is responsible for laying out and drawing the text table blocks it contains, and it maintains the basic parameters of the table.

Inheritance


Conforms To


Import Statement


import AppKit @import AppKit;

Availability


Available in OS X v10.4 and later.
  • Returns the number of columns in the text table.

    Declaration

    Swift

    var numberOfColumns: Int

    Objective-C

    @property NSUInteger numberOfColumns

    Return Value

    The number of columns in the text table.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Sets the number of columns in the text table.

    Declaration

    Swift

    var numberOfColumns: Int

    Objective-C

    @property NSUInteger numberOfColumns

    Parameters

    numCols

    The new number of columns.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns whether the text table borders are collapsible.

    Declaration

    Swift

    var collapsesBorders: Bool

    Objective-C

    @property BOOL collapsesBorders

    Return Value

    YEStrue if the text table borders are collapsible, NOfalse otherwise.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Sets whether the text table borders are collapsible.

    Declaration

    Swift

    var collapsesBorders: Bool

    Objective-C

    @property BOOL collapsesBorders

    Parameters

    flag

    YEStrue if the text table borders should be collapsible, NOfalse otherwise.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Returns whether the text table hides empty cells.

    Declaration

    Swift

    var hidesEmptyCells: Bool

    Objective-C

    @property BOOL hidesEmptyCells

    Return Value

    YEStrue if the text table hides empty cells, NOfalse otherwise.

    Discussion

    If empty cells are hidden, locations with empty cells allow the background of the enclosing block or text container to show through.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • Sets whether the text table hides empty cells.

    Declaration

    Swift

    var hidesEmptyCells: Bool

    Objective-C

    @property BOOL hidesEmptyCells

    Parameters

    flag

    YEStrue if the text table should hide empty cells, NOfalse otherwise.

    Discussion

    If empty cells are hidden, locations with empty cells allow the background of the enclosing block or text container to show through.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • These constants, specifying the type of text table layout algorithm, are used with setLayoutAlgorithm:.

    Declaration

    Swift

    enum NSTextTableLayoutAlgorithm : UInt { case AutomaticLayoutAlgorithm case FixedLayoutAlgorithm }

    Objective-C

    enum { NSTextTableAutomaticLayoutAlgorithm = 0, NSTextTableFixedLayoutAlgorithm = 1 }; typedef NSUInteger NSTextTableLayoutAlgorithm;

    Constants

    • AutomaticLayoutAlgorithm

      NSTextTableAutomaticLayoutAlgorithm

      Specifies automatic layout algorithm

      Available in OS X v10.4 and later.

    • FixedLayoutAlgorithm

      NSTextTableFixedLayoutAlgorithm

      Specifies fixed layout algorithm

      Available in OS X v10.4 and later.

    Import Statement

    import AppKit

    Availability

    Available in OS X v10.4 and later.