Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

NSTableViewMBS.viewAtColumn(column as Integer, row as Integer, makeIfNecessary as Boolean) as NSViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacControls Plugin 17.1 Yes No No Yes, macOS only No
Function: Returns a view at the specified row and column indexes, creating one if necessary.
column: The index of the column in the tableColumns array.
row: The row index.
makeIfNecessary: true if a view is required, false if you want to update properties on a view, if one is available.

Returns an instance of NSView.

This method first attempts to return an available view, which is generally in the visible area. If there is no available view, and makeIfNecessary is true, a prepared temporary view is returned. If makeIfNecessary is false, and the view is not available, nil will be returned.
In general, makeIfNecessary should be true if you require a resulting view, and false if you only want to update properties on a view only if it is available (generally this means it is visible).
An exception will be thrown if row is not within the numberOfRows. The returned result should generally not be held onto for longer than the current run loop cycle. Instead they should re-query the table view for the row view.

Feedback, Comments & Corrections

Previous items

The items on this page are in the following plugins: MBS MacControls Plugin.

MBS Xojo PDF Plugins