Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How to set icon from Makefile?

How to set icon from Makefile?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Jan 16, 2004, 10:28 AM
 
Hi,
I'm doing Makefile builds for my C++ OpenGL program. When it's done compiling, it creates a file with a terminal icon, that you can double click, and will open in the terminal.
However, if you create a folder called "MyExecutable.app", put in it a folder called Contents, and in that, a folder called MacOS and put the executable in there, the app will run just like a normal one.

So, i'm wondering if there's any way to set an application's icon file to a specific icon from a makefile. XCode and ProjectBuilder did it. I'm just wondreing how!


thanks
gabe
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 16, 2004, 02:58 PM
 
I'm not sure how they do it, but the steps are:

1) Put the .icns file containing the icons in the Resources directory.

2) Add the icon key pointing to that file to the application's info.plist.

Wade
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:51 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2