NSTableview View Based Scrolling Performance

后端 未结 5 1154
一生所求
一生所求 2020-12-14 03:21

I am fairly new to OS X Cocoa programming but have decided to give it a go with the new Swift language.

I have an NSTableView with 1500

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 03:36

    I recently found myself in a very similar situation, having a cell based NSOutlineView that was blazing fast pre-Yosemite and almost crawled to a halt after upgrading to Yosemite.

    In my experience, enabling layer-backing on the table view itself is not enough, you also have to enable it for the NSScrollView that contains your table view and it's NSClipView.

    After making those changes my table view was up to speed again but experiencing some strange visual artifacts. Those might or might not be relevant in your situation since you're not using an source list NSOutlineView that uses the new vibrancy/transparency stuff in Yosemite.

    In any case, those "effects" went away as soon as I converted to a view based table.

提交回复
热议问题