summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2013-06-21 09:03:15 +0000
committerManolo Gouy <Manolo>2013-06-21 09:03:15 +0000
commitcd56917312e5525ddbb59153e017f649e6d52218 (patch)
tree618ac441c2f1f5ea7f86d8c527896dc12c29d3d6
parent30d6ef80a3f538b0155ce847def4161f1dbddc84 (diff)
Documented in the OS issues section how to add an application icon for the Mac platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--documentation/src/osissues.dox16
1 files changed, 16 insertions, 0 deletions
diff --git a/documentation/src/osissues.dox b/documentation/src/osissues.dox
index 248e626bf..18232c670 100644
--- a/documentation/src/osissues.dox
+++ b/documentation/src/osissues.dox
@@ -724,6 +724,22 @@ placed in the system menu bar (at top-left of display), and, on other platforms,
at a user-chosen location of a user-chosen window.
+\subsection osissues_icon_osx Setting the icon of an application
+\li First, create a .icns file containing several copies of your icon of decreasing sizes.
+This can be done using the Preview application or the Icon Composer application
+available in "Graphics Tools for Xcode". To create a high resolution icon file,
+it is necessary to use the iconutil command-line utility.
+\li Put your .icns file in the Resources subdirectory of your application bundle.
+\li Add these two lines to the Info.plist file of your application bundle
+\verbatim
+<key>CFBundleIconFile</key>
+<string>foo.icns</string>
+\endverbatim
+replacing <tt>foo</tt> by your application name. If you use Xcode, just add your .icns file to your
+application target.
+
+
+
\subsection osissues_quartz Drawing Things Using Quartz
All code inside Fl_Widget::draw()
is expected to call Quartz drawing functions. The Quartz coordinate system