有没有类似 NSBottomBar 的东西?
好吧,当然我检查了 API,没有任何内容——至少在这个类名下是这样。
我的意思是 Apple 人机界面指南中称为底部栏的小部件。 我是否必须自己从 NSView 中绘制它,如果是的话我该如何绘制纹理?
PS:我将工具栏添加到标签中,因为它是我能找到的最接近的通用关键字,而底部栏正好相反一个工具栏。
Okay of course i checked the API and there is nothing - at least under this class name.
What i mean is the widget referred to as a bottom bar in the Apple Human Interface Guidline.
Do i have to draw this myself from a NSView, if so how do i get the texture drawn?
P.S.: I added Toolbar to the tags because it is the closest generic keyword i can find and the bottom bar ist just the opposite as a toolbar.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在寻找“内容边界”。这是您需要在 Leopard 代码中设置的内容,但您可以在 Snow Leopard 的 Interface Builder 中设置它(请注意,您必须面向 10.6 或更高版本才能使其在 Interface Builder 中成为有效设置)。
您可以方便地设置大边框或小边框(使用 Apple 批准的标准尺寸)。要进行设置,请在 Interface Builder 中选择您的窗口,然后显示“大小”检查器。在面板底部,您将找到内容边框设置。
You're looking for the "content border." This is something you need to set in code with Leopard, but you can set it in Interface Builder in Snow Leopard (note you must be targeting 10.6 or above in order for this to be a valid setting in Interface Builder).
You can conveniently set a large or small border (using the standard Apple-approved sizes). To set this, select your window in Interface Builder, then show the Size inspector. At the bottom of the panel, you'll find the Content Border settings.
Brandin Walkin 出色的 BWToolkit(BSD 许可证)提供了对内容边框中 UI 的支持(以及许多其他不错的功能) UI 元素)并使使用“底栏”变得更加愉快。
Brandin Walkin's excellent BWToolkit (BSD license) provides support for UI in the content border (among many other nice UI elements) and makes using a "bottom bar" much more enjoyable.