Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

macOS document icon template? [closed]

Tags:

macos

icons

The original question below has been overtaken by time: these days you do not have to supply icons or icon sets for your documents any more, as macOS will generate a standard icon out of your application icon and the system document icon template. See https://developer.apple.com/news/?id=5i6jlf4d This seems a recent development, the document in the link is dated January 2021.

You still have to supply CFBundleDocumentTypes in your plist, to bind the document extension to your application, but leave out CFBundleTypeIconFile that you can use to attach your own iconset to your documents.

Original question: Is there a template available for the Mac OS X document icon? It looks like a white piece of paper with the top right corner curled down. Lots of applications seem to use this icon as a base for their own custom document types. Does everyone use a template for the basic shape, or does every developer have to draw their own from scratch?

I know you can get the plain document icon here:

/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocument.icns 

But that is in .icns format rather than a format I can easily edit. Also, it doesn't make it easy if you want the document background to be anything but white.

It would be great if there is a Photoshop (.psd) template available for each icon size (512, 256, 128, 32, 16).

like image 465
sam Avatar asked Aug 10 '10 23:08

sam


People also ask

How do I change my icons back to normal on Mac?

Restore the original icon for a file or folder On your Mac, select the file or folder. Choose File > Get Info in the menu bar. At the top of the Info window, select the small custom icon.

What are the arrows on documents on Mac?

The arrow is actually a small “badge” that floats above the file's native icon. Some people like them because it makes it easy to find aliases in a long list of files.

Where are file icons stored Mac?

The system icons bundle, found in the /System/Library/CoreServices directory, stores about 140 icons. Start by opening a Terminal window, then change directories to /System/Library/CoreServices/SystemIcons. bundle/Contents/Resources.

What is the file extension for Mac icons?

A file with the ICNS file extension is a macOS icon resource file (often referred to as the Apple icon image format) that macOS applications use to customize how their icons appear in Finder and in the OS X dock.


1 Answers

You can find various curl images in the QuickLook framework:

/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources/

You can then composite your document icon over the generic document icon, which also gives you the mask for the curled page icon:

/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocumentIcon.icns

like image 69
wdyp Avatar answered Sep 18 '22 11:09

wdyp