Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get standard Mac OS X icons to use in your app?

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: enter image description here enter image description here

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

like image 372
Zelid Avatar asked Sep 26 '15 19:09

Zelid


2 Answers

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

eg.

NSImage * img = [NSImage imageNamed:NSImageNameFolder];

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

like image 104
Grady Player Avatar answered Sep 29 '22 17:09

Grady Player


Not all of those are standard. For the ones which are, you use +[NSImage imageNamed:] with one of the system-defined image name constants, such as NSImageNameGoLeftTemplate or NSImageNameIconViewTemplate.

like image 26
Ken Thomases Avatar answered Sep 29 '22 15:09

Ken Thomases