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


Swift

import AppKit

Objective-C

@import AppKit;

Availability


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

    Declaration

    Swift

    var numberOfColumns: Int

    Objective-C

    @property NSUInteger numberOfColumns

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • A Boolean value indicating whether the text table borders are collapsible.

    Declaration

    Swift

    var collapsesBorders: Bool

    Objective-C

    @property BOOL collapsesBorders

    Discussion

    The value of this property is YEStrue when the text table borders are collapsible.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

  • A Boolean value indicating whether the text table hides empty cells.

    Declaration

    Swift

    var hidesEmptyCells: Bool

    Objective-C

    @property BOOL hidesEmptyCells

    Discussion

    The value of this property is YEStrue when the text table hides empty cells. If empty cells are hidden, locations with empty cells allow the background of the enclosing block or text container to show through.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.

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

    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

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.4 and later.