Disable NSVisualEffectView in Source List NSTableView

后端 未结 2 535
清歌不尽
清歌不尽 2021-01-13 13:49

I have an older application that has a specific appearance based on NSCell-based NSTableView having Source List highlighting. Unfortunately, on Yosemite this adds the NSVisu

相关标签:
2条回答
  • 2021-01-13 14:34

    I don't know if it works for your case, but the best way to disable an implicit visual effect view is to just embed your NSTable/OutlineView in another NSVisualEffectView and set that views state to inactive

    visualEffectView.state = .inactive
    
    0 讨论(0)
  • 2021-01-13 14:35

    You need to change table view appearance from NSAppearanceNameVibrantLight to NSAppearanceNameAqua. If you're targeting OS X 10.8 or earlier try setting the appearance by editing XIB file directly:

    <tableView appearanceType="aqua" ...>
    

    Also make sure that table view background color is set to Default in IB.

    0 讨论(0)
提交回复
热议问题