Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

NSOutlineViewMBS class

Super class: NSTableViewMBS

class, Cocoa Controls, MBS CocoaControls Plugin (NSOutlineView), class NSOutlineViewMBS,
Plugin version: 17.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: The class for a hierarchical list.
Notes:
NSOutlineView is a subclass of NSTableView that uses a row-and-column format to display hierarchical data that can be expanded and collapsed, such as directories and files in a file system. A user can expand and collapse rows, edit values, and resize and rearrange columns.

Like a table view, an outline view does not store its own data, instead it retrieves data values as needed from a data source to which it has a weak reference.

MBS Plugin provides all events in NSOutlineControlMBS control.

An outline view has the following features:
  • A user can expand and collapse rows.
  • Each item in the outline view must be unique. In order for the collapsed state to remain consistent between reloads the item's pointer must remain the same and the item must maintain isEqual: sameness.
  • The view gets data from a data source (see NSOutlineControlMBS).
  • The view retrieves only the data that needs to be displayed.
Subclass of the NSTableViewMBS class.

Super class NSTableViewMBS

RowActionEdge

Constant Value Description
NSTableRowActionEdgeLeading 0 Denotes the leading, or left, edge of an table row view.
NSTableRowActionEdgeTrailing 1 Denotes the trailing, or right, edge of an table row view.

Animation options

Constant Value Description
NSTableViewAnimationEffectFade 1 Use a fade for row or column removal. The effect can be combined with any of the slide constants.
NSTableViewAnimationEffectGap 2 Creates a gap for newly inserted rows. This is useful for drag and drop animations that animate to a newly opened gap and should be used in the acceptDrop event.
NSTableViewAnimationEffectNone 0 Use no animation effects.
NSTableViewAnimationSlideDown &h20 Animates a row insertion or removal by sliding downward.
NSTableViewAnimationSlideLeft &h30 Animates a row insertion by sliding from the left. Animates a row removal by sliding towards the left.
NSTableViewAnimationSlideRight &h40 Animates a row insertion by sliding from the right. Animates a row removal by sliding towards the right.
NSTableViewAnimationSlideUp &h10 Animates a row insertion or removal by sliding upward.

Row Size Style Constants

Constant Value Description
NSTableViewRowSizeStyleCustom 0 The table will use the rowHeight or invoke the delegate method tableView:heightOfRow:, if implemented. The cell layout is not changed.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewRowSizeStyleDefault -1 The table will use the system default layout size: small, medium or large.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewRowSizeStyleLarge 3 The table will use a row height specified for a small table. It is required that the size be fully tested and supported if NSTableViewRowSizeStyleCustom is not used.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewRowSizeStyleMedium 2 The table will use a row height specified for a medium table. It is required that the size be fully tested and supported if NSTableViewRowSizeStyleCustom is not used.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewRowSizeStyleSmall 1 The table will use a row height specified for a small table. It is required that the size be fully tested and supported if NSTableViewRowSizeStyleCustom is not used.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.

Super class NSViewMBS

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some properties using for this class:

Some examples which use this class:


The items on this page are in the following plugins: MBS CocoaBase Plugin, MBS CocoaControls Plugin.


NSOutlineViewItemMBS   -   NSPageLayoutMBS




Links
MBS FileMaker Plugins