简体   繁体   English

如何使NSTextView水平滚动?

[英]How to make NSTextView scroll horizontally?

so I was playing around with XCode and I was wondering if it was possible scroll an NSTextView horizontally. 所以我在玩XCode,我想知道是否可以水平滚动NSTextView。 I know that we can add a horizontal scroller to it through interface builder (or Xcode) but you still can't scroll horizontally even after adding it so any help would be great. 我知道我们可以通过界面生成器(或Xcode)向其中添加水平滚动条,但是即使添加后您仍然无法水平滚动,因此任何帮助都将非常有用。 Thanks 谢谢

have you set the frame/bounds on the scroller? 您在滚动条上设置了边框吗? Those both need to be manually set for a scroller to work. 两者都需要手动设置才能使滚动条起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM