How to always visible horizontal scrollbar of NSTableview in objective c programmatically?

喜夏-厌秋 提交于 2020-01-16 07:29:23

问题


I have added NSTableview with multiple columns, I want its horizontal scrollbar should always visible, How to achieve this?


回答1:


I create NSScrollview outlet & set in .xib file to superview of NSTableview & used two methods. - setAutohidesScrollers set NO, - setScrollerStyle: set NSScrollerStyleLegacy Set style NSScrollerStyleLegacy meaning is NSSCrollbars background is not transparent. This solved my problem, Hope it will help others.



来源:https://stackoverflow.com/questions/48543845/how-to-always-visible-horizontal-scrollbar-of-nstableview-in-objective-c-program

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