Changes between Version 9 and Version 10 of MacBuild


Ignore:
Timestamp:
Aug 2, 2007, 5:02:05 PM (17 years ago)
Author:
Nicolas
Comment:

Formatting tweaks

Legend:

Unmodified
Added
Removed
Modified
  • MacBuild

    v9 v10  
    244244=== Adding a Finder icon to your application ===
    245245
    246 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:
     246There 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:
    247247
    248248    * Use '/Developer/Applications/utilities/Icon Composer.app' to create a xxx.icns file. (Use any name you wish instead of xxx.)
    249249    * Convert the xxx.icns file to an app_icon.h file as follows: in Terminal, run:
    250 
    251250{{{
    252251{path}/MakeAppIcon_h {source_file_path}/xxx.icns {dest_file_path}/app_icon.h
    253252}}}
    254 
    255253      (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.
    256254    * In the science application's main(), add
    257 
    258255{{{
    259256#include "app_icon.h"
    260257}}}
    261 
    262258      and call:
    263 
    264259{{{
    265260setMacIcon(argv[0], MacAppIconData, sizeof(MacAppIconData));