实施Yosemite提醒/备注/消息/联系人样式窗口 [英] Implement Yosemite Reminders/Notes/Messages/Contacts style windows

查看:165
本文介绍了实施Yosemite提醒/备注/消息/联系人样式窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建Yosemite提醒/备注/消息/联系人样式窗口?具体来说,交通灯在分割视图的左窗格中,而右窗格占用整个空间,包括标题栏区域。请参阅随附的萤幕撷取画面。

How do I create a Yosemite Reminders/Notes/Messages/Contacts style window? Specifically, the traffic lights are on the left pane of a split view, while the right pane takes up the whole space including the title bar area. See the attached screenshots.

推荐答案

这是两个新的 NSWindow 选项的组合。

This is a combination of two new NSWindow options.


  1. 在窗口的 styleMask 中包含 NSFullSizeContentViewWindowMask ,使窗口的内容视图伸展到标题/工具栏的后面。

  1. Include NSFullSizeContentViewWindowMask in your window's styleMask to make the content view of the window stretch up behind the title/toolbar.

启用 titlebarAppearsTransparent 属性以禁用半透明标题/工具栏材质的渲染,

Enable the titlebarAppearsTransparent property to disable rendering of the translucent title/toolbar material so that the content view shows up in the title/toolbar area without getting blurred.

这篇关于实施Yosemite提醒/备注/消息/联系人样式窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆