Changes between Version 32 and Version 33 of MacBuild
- Timestamp:
- Jan 29, 2008, 9:41:27 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MacBuild
v32 v33 276 276 For additional information, please see [milestone:6.0 the 6.0 roadmap] and the [GraphicsApi Graphics API] page. 277 277 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 280 There 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: 281 281 282 282 * Use '/Developer/Applications/utilities/Icon Composer.app' to create a xxx.icns file. (Use any name you wish instead of xxx.) … … 285 285 {path}/MakeAppIcon_h {source_file_path}/xxx.icns {dest_file_path}/app_icon.h 286 286 }}} 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 scienceapplication's project.288 * In the scienceapplication's main(), add287 (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 289 289 {{{ 290 290 #include "app_icon.h" … … 294 294 setMacIcon(argv[0], MacAppIconData, sizeof(MacAppIconData)); 295 295 }}} 296 * The scienceapplication must link with Carbon.framework to use setMacIcon().296 * The graphics application must link with Carbon.framework to use setMacIcon().