Skip to content

Commit

Permalink
Mac: add comments that mac_icon.cpp and MakeAppIcon_h utility are obs…
Browse files Browse the repository at this point in the history
…olete, describing new preferred method for adding icons to Mac science applications.
  • Loading branch information
Charlie Fenton committed Feb 27, 2017
1 parent 400f7a0 commit 35ec133
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions api/mac_icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.

// THIS CODE IS OBSOLETE! A better way to add an icon to science applications
// (or any Mac executable, including command-line tools) is:
// [1] Select the application in the Finder
// [2] Get Info (command-I) for the selected application
// [3] Click on the file's current icon in the top left corner of the Get Info window
// [4] Paste (command-v) the desired icon.
//
// To copy an icon from a different file:
// [a] Get Info for the source file
// [b] Click on the file's icon in the top left corner of the Get Info window
// [c] Copy (command-c) the icon.


/* Mac-specific code to display custom icon for science application (optional)
adapted from code written by Bernd Machenschalk. Used with permission of the
Einstein@home project.
Expand Down
12 changes: 12 additions & 0 deletions api/make_app_icon_h.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
// Utility to convert *.icns file into app_icon.h file for use
// with api/setMacIcon() in science applications.

// THIS CODE IS OBSOLETE! A better way to add an icon to science applications
// (or any Mac executable, including command-line tools) is:
// [1] Select the application in the Finder
// [2] Get Info (command-I) for the selected application
// [3] Click on the file's current icon in the top left corner of the Get Info window
// [4] Paste (command-v) the desired icon.
//
// To copy an icon from a different file:
// [a] Get Info for the source file
// [b] Click on the file's icon in the top left corner of the Get Info window
// [c] Copy (command-c) the icon.

#include "config.h"
#include <cstdio>

Expand Down

0 comments on commit 35ec133

Please sign in to comment.