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 > Applying icons to applications

Applying icons to applications
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2000
Location: Antioch, CA
Status: Offline
Reply With Quote
Sep 20, 2000, 01:32 AM
 
How would I apply the thumbnail icons to a Carbon application in OS X?
     
wyzeguy
Guest
Status:
Reply With Quote
Sep 20, 2000, 02:17 AM
 
You can copy and paste icons into the info (or the Inspector as it's called now)windows in OS X just the same as in OS 9 or earlier.

------------------
Life is what happens to you when you have something else planned. --Mark Roberts
     
mjuarez  (op)
Fresh-Faced Recruit
Join Date: Sep 2000
Location: Antioch, CA
Status: Offline
Reply With Quote
Sep 20, 2000, 02:26 AM
 
But will they show up as those nice 128x128 icons?
     
ali
Forum Regular
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 20, 2000, 12:46 PM
 
You need a 128 x 128 icns file, and the name of the file needs to be specified in the app bundle's Info.plist. ProjectBuilder will allow you to set the icon name in its "Application Settings" pane; this gets it to the Info.plist file automatically.

If you find yourself having to get this into the Info.plist by hand, see the InfoPlist.html release note.

You can use IconComposer application (in /Developer/Applications) to create icns files which contain 128 x 128 representations.

Ali


     
mjuarez  (op)
Fresh-Faced Recruit
Join Date: Sep 2000
Location: Antioch, CA
Status: Offline
Reply With Quote
Sep 20, 2000, 02:48 PM
 
But what about Carbon? How would you do it with a Carbon app?
     
ali
Forum Regular
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 20, 2000, 03:26 PM
 
Originally posted by mjuarez:
But what about Carbon? How would you do it with a Carbon app?
As long as you package your Carbon app in a .app folder (bundle), it's the same.

Note that even CFM Carbon apps that are meant to be used on 9 and X can be packaged this way, so there's really nothing stopping you from doing this packaging. For instance, check out IE on Public Beta.

If your question is, how to do this with flat CFM Carbon apps, I don't know the answer.

Ali

     
aaron!
Guest
Status:
Reply With Quote
Sep 20, 2000, 04:32 PM
 
This is what we do in our app since we aren't using a bundle and don't plan to in the near future.

We build the icon using Icon Builder Pro. It exports a .icns file with all the data in the data fork. Using resorcerer, copy all the hex data from the data fork into a new icns resource. Save that resource as -16455. Copy that resource into your app. Set the "Has Custom Icon" bit for your app.

I also made an icns resource of id 128 (since the BNDL specifies that as the app icon) just in case. I don't know if that's required
     
   
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 03:07 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