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 > setting icons for docklings

setting icons for docklings
Thread Tools
tie
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 29, 2001, 07:52 PM
 
I know how to set custom icons for applications in Project Builder. However, when I tried the same thing for my new dockling, the custom .icns file is copied into the correct bundle location (Resources/) and the Info.plist is properly set
<key>CFBundleIconFile</key><string>DocklingIcons.icn s</string>
However, in the Finder the dockling just shows the standard dockling icon, not the custom icon. I've tried restarting and I've tried stuffing and unstuffing the file -- but without avail. I've also unsuccessfully tried copying and pasting from Apple's docklings. I think there must be a problem with the dockling. Any clues as to what docklings do differently? Is there any other way to put in custom icons besides using Project Builder?

I found the following script, AddCustomProductIcon.sh, in Displays.dock:
Code:
#!/bin/sh # usage: AddCustomProductIcon <project-relative path to Icon^M in data fork> outfile=`echo IconX | tr 'X' '\015'` if [ ${ACTION} = install ]; then outpath="${DSTROOT}/${INSTALL_PATH}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}" if ! [ -d "${outpath}" ]; then mkdir -p "${outpath}" fi rm "${SYMROOT}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}/${outfile}" else outpath="${SYMROOT}/${PRODUCT_NAME}.${WRAPPER_EXTENSION}" fi ${SYSTEM_DEVELOPER_DIR}/Tools/ResMerger -srcIs DF -dstIs RSRC "${SRCROOT}/$1" -o "${outpath}/${outfile}" ${SYSTEM_DEVELOPER_DIR}/Tools/SetFile -a V "${outpath}/${outfile}" ${SYSTEM_DEVELOPER_DIR}/Tools/SetFile -a C "${outpath}"
Am I supposed to use this somehow?


[This message has been edited by tie (edited 04-29-2001).]
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
tie  (op)
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 29, 2001, 08:32 PM
 
Sorry, I should have just checked the macosx-dev mailing list, but the search engine was down. The solution is to open the .icns file in Iconographer and Edit->Copy icon family. Then you can paste into onto the app.
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
   
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 09:40 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