Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTableViewMBS class.

Previous items

NSTableViewMBS.viewAtColumn(column as Integer, row as Integer, makeIfNecessary as Boolean) as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
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.

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...