From cd56917312e5525ddbb59153e017f649e6d52218 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 21 Jun 2013 09:03:15 +0000 Subject: 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 --- documentation/src/osissues.dox | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'documentation/src') 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 +CFBundleIconFile +foo.icns +\endverbatim +replacing foo 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 -- cgit v1.2.3