NSWindow Mac App Store,如标题栏

发布于 2024-10-10 07:22:32 字数 286 浏览 0 评论 0原文

我怎样才能使 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

墨小墨 2024-10-17 07:22:32

https://github.com/indragiek/INAppStoreWindow

NSWindow 的标题栏和红绿灯自定义

INAppStoreWindow 是一个 NSWindow 子类,最初是为了模仿 OS X 10.6.6 中引入的 Mac App Store 应用程序中主窗口的外观而开发的。

MAS 应用程序已经放弃了这种设计,但是 INAppStoreWindow 仍在积极开发中,以便为 NSWindow 标题栏提供广泛的附加自定义选项...

https://github.com/indragiek/INAppStoreWindow

Title bar and traffic light customization for NSWindow

INAppStoreWindow is an NSWindow subclass that was originally developed to mimic the appearance of the main window in the Mac App Store application introduced in OS X 10.6.6.

The MAS application has since transitioned away from this design, but INAppStoreWindow is still being actively developed to provide extensive additional customization options for NSWindow title bars...

无名指的心愿 2024-10-17 07:22:32

对于 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."

乙白 2024-10-17 07:22:32

您还可以查看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文