gpt4 book ai didi

objective-c - 根据人机界面指南,哪些 Cocoa 控件是侧边栏控件?

转载 作者:行者123 更新时间:2023-12-03 17:02:29 25 4
gpt4 key购买 nike

Mac OS X Human Interface Guidelines (HIG)概述侧边栏图标应遵守的某些事项,给出的原因是:

OS X applies various effects to sidebar icons

第一个问题我没有看到 OS X 会应用这些效果的标准开箱即用侧边栏控件。这些是哪些控件?

第二个问题

HIG还推荐:

Create your icons in three sizes: 16 x 16, 18 x 18, and 32 x 32 pixels (if using PDF).

如果您向应用程序提供矢量图稿 (pdf),为什么需要复制这三种尺寸?

[我也许可以理解,如果这些尺寸不只是原始正方形 16x16 的纯粹缩放,但考虑到它们都是彼此对称的......]

最佳答案

对侧边栏控件的引用是对前面章节的引用Windows: Source Lists (Sidebars) :

A source list (also called a sidebar) is an area of a window, usually set off by a movable splitter, that lets users navigate or select objects in an app. … Typically, users select an object in the source list and then act upon that object in the main part of the window.

API Note

By default, a source list is translucent when you use an NSOutlineView or NSTableView object and set the highlight style to NSTableViewSelectionHighlightStyleSourceList.

关于图标大小,我很确定这只是一个拼写错误。他们删除了“不”一词,如“16 x 16、18 x 18 和 32 x 32 像素(如果使用 PDF)”。接下来的段落清楚地表明了这一点:

If you create your sidebar icons in PDF format, OS X automatically scales your icon for high-resolution displays, so you don't need to provide high-resolution versions. However, if you use PNG format for your icons, you need to supply the following resources: 16x16, 16x16@2x, 18x18, 18x18@2x, 32x32, and 32x32@2x.

关于objective-c - 根据人机界面指南,哪些 Cocoa 控件是侧边栏控件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28015685/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com