如何获得在您的应用程序中使用的标准Mac OS X图标? [英] How to get standard Mac OS X icons to use in your app?

查看:65
本文介绍了如何获得在您的应用程序中使用的标准Mac OS X图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得在设计/应用中使用的标准Mac OS X图标?

How do you get standard Mac OS X icons to use in your design / app?

按标准图标,我指的是此屏幕截图中的工具栏图标:

By standard icons I mean toolbar icons from this screenshots:

是否有存储这些文件的位置,或是否有任何方法可以从Mac OS X应用程序中提取这些文件?

Is there a location where those files are stored or any way to extract them from the Mac OS X app?

推荐答案

请参见

see +[NSImage imageNamed:(NSString)name] and the links in that for the different list of os defined images...

例如

NSImage * img = [NSImage imageNamed:NSImageNameFolder];

具体列出了工具栏图像:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/index.html#//apple_ref/doc/constant_group/Toolbar_Named_Images

toolbar images specifically are listed:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSImage_Class/index.html#//apple_ref/doc/constant_group/Toolbar_Named_Images

这篇关于如何获得在您的应用程序中使用的标准Mac OS X图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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