自定义窗口标题 +工具栏(例如 Mac App Store 和 Reeder for Mac)
我试图弄清楚如何创建“新流行”组合窗口标题和工具栏,如 Reeder for Mac 和 Mac App Store (http://www.apple.com/mac/app-store/) 中所示。尝试过谷歌搜索,但这似乎不是一个经常讨论的话题!
基本上;它是一个带有自定义视图的无边框窗口(在这种情况下,我如何获得工作的交通灯按钮)?或者可以用 Interface Builder 来做吗?
I'm trying to figure out how to create the "new popular" combined window title and toolbar as seen in Reeder for Mac and Mac App Store (http://www.apple.com/mac/app-store/). Tried googling but this does not seem to be a very discussed topic!
Basically; is it a borderless window with custom views all the way (and in such case, how do I get working traffic-light buttons)? Or is it possible to do with Interface Builder?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
https://github.com/indragiek/INAppStoreWindow
https://github.com/indragiek/INAppStoreWindow
class-dump
ing Reeder 揭示了窗口标题栏实际上只是一个视图(所以是的,带有自定义视图的无边框窗口 - 底部栏也是一个视图)。我假设苹果也会做同样的事情,但谁知道呢?也许这种行为会在 10.7 中变得更加标准并获得官方支持?class-dump
ing Reeder reveals that the window title bar is, in fact, just a view (so yes, borderless window with custom views - the bottom bar is a view as well). I'm assuming Apple does the same thing, but who knows? Maybe this behavior will become more standard in 10.7 and gain official support?