I've been trying to use SCNView added on a column of NSTableView.
Now I have multiple SCNViews and each of them is added on individual rows of NSTableView.
Therefore NSTableView has the same number of its rows to the number of SCNViews.
When the number of SCNViews and rows of NSTableView are enough large, NSTableView only shows the first few rows and else are hidden befind the window as shown in the picture.
Hidden rows can be shown by scrolling a slide bar.
See the picture.
The problem happens on the SCNViews that do not appear firstly on the screen.
When I scroll the slid bar, hidden SCNViews appear on the screen but their rendering are broken.
See the picture
What happens on the SCNView when it is not shown on the surface?
Is there anything I need to do extra for them?
Thank you so much for your help.
My codes
ViewController.swift
tableViewController.swift
listcell.swift
AppDelegate