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).]