开发者

NSWindow Mac App Store like Title Bar

开发者 https://www.devze.com 2023-02-02 00:27 出处:网络
How could I make an NSWindow\'s title bar look like that of the Mac App Store or of the app Feeder 开发者_如何学Cwhere it\'s height is increased and other controls are show in it.

How could I make an NSWindow's title bar look like that of the Mac App Store or of the app Feeder 开发者_如何学Cwhere 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?


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...


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消