[英]How to do a bottom border like in finder?
I am trying to add a border att tha bottom of my textrured window with a sidebar. 我正在尝试使用侧边栏在我的textrured窗口底部添加边框。 I would like to look exactly like in finder:
我想在finder中看起来很像:
alt text http://jeenaparadies.net/t/s/finder-border.png alt text http://jeenaparadies.net/t/s/finder-border.png
for now it looks like that: 现在它看起来像那样:
alt text http://jeenaparadies.net/t/s/twittia-border.png alt text http://jeenaparadies.net/t/s/twittia-border.png
And I can't find anything in Interface Builder how I can add this border. 我在Interface Builder中找不到任何可以添加此边框的内容。
You add that with NSWindow's setContentBorderThickness:forEdge:, passing NSMinYEdge for the edge. 你可以在NSWindow的setContentBorderThickness:forEdge:中添加它,为边缘传递NSMinYEdge。 Note that this will only work if the window is not textured.
请注意,这仅在窗口没有纹理时才有效。
查看BWToolkit中的Bottom Bars 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.