Changes between Version 32 and Version 33 of MacBuild


Ignore:
Timestamp:
Jan 29, 2008, 9:41:27 PM (16 years ago)
Author:
charlief
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MacBuild

    v32 v33  
    276276For additional information, please see [milestone:6.0 the 6.0 roadmap] and the [GraphicsApi Graphics API] page.
    277277
    278 === Adding a Finder icon to your application ===
    279 
    280 There is an optional API `setMacIcon()` in the `libboinc_api.a` library. This allows science applications to display an application icon in the Dock and in the Finder. (The icon does not appear in the Dock until the application displays graphics.) To implement this, do the following:
     278=== Adding a Finder icon to your graphics application ===
     279
     280There is an optional API `setMacIcon()` in the `libboinc_api.a` library. This allows science graphics applications to display an application icon in the Dock and in the Finder. (The icon does not appear in the Dock until the application displays graphics.) To implement this, do the following:
    281281
    282282    * Use '/Developer/Applications/utilities/Icon Composer.app' to create a xxx.icns file. (Use any name you wish instead of xxx.)
     
    285285{path}/MakeAppIcon_h {source_file_path}/xxx.icns {dest_file_path}/app_icon.h
    286286}}}
    287       (The !MakeAppIcon_h command-line utility is built by the Mac boinc XCode project in the 'boinc/mac_build/build/' directory.) Add the app_icon.h file to your science application's project.
    288     * In the science application's main(), add
     287      (The !MakeAppIcon_h command-line utility is built by the Mac boinc XCode project in the 'boinc/mac_build/build/' directory.) Add the app_icon.h file to your graphics application's project.
     288    * In the graphics application's main(), add
    289289{{{
    290290#include "app_icon.h"
     
    294294setMacIcon(argv[0], MacAppIconData, sizeof(MacAppIconData));
    295295}}}
    296     * The science application must link with Carbon.framework to use setMacIcon().
     296    * The graphics application must link with Carbon.framework to use setMacIcon().