在哪里可以找到 Apple 的标准源列表/侧边栏图标?
我正在为 OS X 编写一个应用程序(使用 REALbasic,而不是 Objective-C)。我已经实现了 源列表(即iTunes中的侧边栏)在此应用程序中。
在我的系统上,我可以在哪里找到侧边栏上使用的“标准”图标,即:插入 iPod 时在 iTunes 中看到的“弹出”和“电池”图标之类的图标。我已经检查了 iTunes 包装内容,并发现找到了几个(诸如音乐和电视节目图标之类的东西),但仅此而已。
谢谢,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准图标是在图标服务中定义的图标和NSImage。没有专门用于侧边栏的图标,并且您列出的两个示例不属于标准图标。 (图标服务中有一个
kEjectMediaIcon
,但它是 Dock 使用的那个,而不是您在 Finder 和 iTunes 中看到的那个。)iTunes 可能会也可能不会为此使用图像,但 Eject符号可用作标准 Unicode 字符:⏏。 (如果你不喜欢它的外观,可以用不同的字体查看。Apple Symbols 和 Lucida Grande 都有很好的版本。)
至于电池图标:如果你打开 Linotype FontExplorer,你可以看到 Apple Symbols 有一个它的字形(waaaay 位于字体字符列表底部附近),但它只能作为字形变体访问。即使绘制了字形,您仍然需要用电池电量填充它,所以您最好自己绘制整个图形。
The standard icons are those defined in Icon Services and NSImage. There are none specifically for sidebars, and the two examples you list are not among the standard icons. (There is a
kEjectMediaIcon
in Icon Services, but it's the one the Dock uses, not the one you see in Finder and iTunes.)iTunes may or may not be using an image for this, but the Eject symbol is available as a standard Unicode character: ⏏. (If you don't like how that looks, view it in a different font. Apple Symbols and Lucida Grande both have good versions.)
As for the battery icon: If you open up Linotype FontExplorer, you can see that Apple Symbols has a glyph for it (waaaay down near the bottom of the font's Characters list), but it's only accessible as a glyph variant. Even once you draw the glyph, you'll still need to fill it in with the battery level, so you might as well draw the whole thing yourself.