rendering problem on NSTableView

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.

http://imgur.com/sz1v59j


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

http://imgur.com/rYPIfUp


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

http://climbi.com/b/5671/0


tableViewController.swift

http://climbi.com/b/5672/0


listcell.swift

http://climbi.com/b/5673/0


AppDelegate

http://climbi.com/b/5674/0

rendering problem on NSTableView
 
 
Q