title: macOS document icon template?
body: <p>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 <a href="https://developer.apple.com/news/?id=5i6jlf4d" rel="nofollow noreferrer">https://developer.apple.com/news/?id=5i6jlf4d</a> This seems a recent development, the document in the link is dated January 2021.</p>
  <p>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.</p>
  <p><strong>Original question:</strong>
  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?</p>
  <p>I know you can get the plain document icon here:</p>
  <pre><code>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocument.icns
  </code></pre>
  <p>But that is in <a href="http://en.wikipedia.org/wiki/Apple_Icon_Image_format" rel="nofollow noreferrer">.icns</a> 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.</p>
  <p>It would be great if there is a Photoshop (.psd) template available for each icon size (512, 256, 128, 32, 16).</p>