Blue border appearing around NSScrollView

烂漫一生 提交于 2019-12-10 17:13:48

问题


I'm sure this is normal and I'm just misunderstanding something, but since making one of my NSScrollViews slightly inset from the bottom of the window (as opposed to taking the full height), a blue border has appeared around it.

I've set NSNoBorder on the scroll view, so this must be something else.

[scrollView setBorderType:NSNoBorder];

Any pointers would be greatly appreciated. I'd like the border to go away as it spoils the look of the app and just looks broken.

I assume it's the scroll view. The view inside it as an NSOutlineView, so maybe it's something on that?


回答1:


That's the focus ring. It shows which view is going to get the keystrokes if the user types anything. If you suppress it, then your app will not be in compliance with the UI guidelines.



来源:https://stackoverflow.com/questions/4366796/blue-border-appearing-around-nsscrollview

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