View based NSTableView with Core Animation

社会主义新天地 提交于 2019-12-12 20:04:09

问题


I have a view based NSTableView that contains cell views that have layers enabled. The NSTAbleView itself is also inside a view that has layers enabled.

For some reason I just get a quick flicker of the table view cells when it first loads, and I have to scroll them in and out to make them appear.

I just can't seem to figure out the reason why this is happening, are view based NSTableViews not supported with Core Animation (it just sounds strange to me if it isn't).

In general I have problems with Core Animation on OSX as opposed to iOS, and I have several cases where certain views just disappear as soon as I enable layer on their superviews.

After lots of googling I finally understood the difference in how the system treats layer backed views vs. layer hosting views, and it helped one of the problems I had, but not all.

Any input on this is greatly appreciated.

来源:https://stackoverflow.com/questions/8500565/view-based-nstableview-with-core-animation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!