实施Yosemite提醒/备注/消息/联系人样式窗口 [英] Implement Yosemite Reminders/Notes/Messages/Contacts style windows
问题描述
如何创建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.
-
在窗口的
styleMask
中包含NSFullSizeContentViewWindowMask
,使窗口的内容视图伸展到标题/工具栏的后面。
Include
NSFullSizeContentViewWindowMask
in your window'sstyleMask
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屋!