NSScrollView周围出现蓝色边框 [英] Blue border appearing around NSScrollView

查看:512
本文介绍了NSScrollView周围出现蓝色边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确定这是正常的,我只是误解了一些东西,但由于我的一个 NSScrollView s从窗口的底部稍微插入(相反

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.

我已将 NSNoBorder 设置为滚动视图,所以这必须是别的东西。

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?

推荐答案

这是对焦环。它显示了如果用户键入任何内容,哪个视图将获得击键。如果您禁止它,那么您的应用将不符合UI指南。

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.

这篇关于NSScrollView周围出现蓝色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆