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).
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With