NSWindow Mac App Store,如标题栏
我怎样才能使 NSWindow 的标题栏看起来像 Mac App Store 或应用程序 Feeder 的标题栏,其中它的高度增加并且其他控件显示在其中。
要了解我的意思,只需查看 Mac App Store 的网站:http://www. apple.com/mac/app-store/。
它是一个自定义的 NSWindow 还是一个带有看起来像标题栏的 NSView 的完全无边框窗口?
How could I make an NSWindow
's title bar look like that of the Mac App Store or of the app Feeder where it's height is increased and other controls are show in it.
To see what I mean just check out the website for the Mac App Store : http://www.apple.com/mac/app-store/.
Is it a custom NSWindow
or is it a completely borderless window with an NSView
made to look like the title bar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
https://github.com/indragiek/INAppStoreWindow
https://github.com/indragiek/INAppStoreWindow
对于 iTunes (v9.x),Apple 没有使用工具栏,而是在顶部栏中自定义对齐图标和控件,以实现类似的效果。 (参见下面的链接)
对我来说,该窗口看起来像一个“纹理化且统一的标题和工具栏”窗口。 (或类似的轻微变体)
要重新定位交通灯按钮,请按照我对 这个问题的回答。
然而,正如戴夫·德隆(Dave DeLong)已经(类似地)评论的那样:“用户界面很糟糕。请不要考虑它。”
For iTunes (v9.x) Apple used no toolbar, but custom aligned icons and controls in the top bar, to achieve a similar effect. (see link below)
The window looks like a "textured & unified title and toolbar" window to me. (or a slight variant of such)
To reposition the traffic light buttons follow my answer to this question.
However, as Dave DeLong already (similarly) commented: "The UI is terrible. Please don't even think about it."
您还可以查看 http://orestis.gr/blog /2007/09/24/messing-with-windows/ 。不过,这使用了一些未记录的内容,因此它实际上不会获得 App Store 的批准。
You can also take a look at http://orestis.gr/blog/2007/09/24/messing-with-windows/ . This uses some undocumented stuff, though, so it won't actually get approved FOR the App Store.